From 4c77ab65f19e478b831c2111c163f398bfe51f59 Mon Sep 17 00:00:00 2001 From: zhangpanting <1768492250@qq.com> Date: Fri, 2 Aug 2024 17:16:41 +0800 Subject: [PATCH 01/14] update --- suite2cases/nvme-snsd.json | 8 +++ suite2cases/obs-server.json | 5 +- suite2cases/opengauss.json | 8 +++ suite2cases/ostree.json | 6 +++ suite2cases/patch-tracking.json | 8 +++ suite2cases/secpaver.json | 8 +++ suite2cases/syscare.json | 6 +++ suite2cases/sysmonitor-kmod.json | 8 +++ suite2cases/targetcli.json | 8 ++- testcases/cli-test/nvme-snsd/common/snsd.conf | 22 ++++++++ .../nvme-snsd/oe_test_service_nvme-snsd.sh | 46 +++++++++++++++++ .../obs-server/oe_test_service_obsredis.sh | 50 ++++++++++++++++++ .../opengauss/oe_test_service_opengauss.sh | 42 +++++++++++++++ .../oe_test_service_ostree-prepare-root.sh | 40 +++++++++++++++ .../ostree/oe_test_service_ostree-remount.sh | 40 +++++++++++++++ .../oe_test_service_patch-tracking.sh | 51 +++++++++++++++++++ .../cli-test/patch-tracking/settings.conf | 17 +++++++ .../cli-test/secpaver/oe_test_service_pavd.sh | 42 +++++++++++++++ .../syscare/oe_test_service_syscare.sh | 42 +++++++++++++++ .../syscare/oe_test_service_upatch.sh | 42 +++++++++++++++ .../oe_test_service_sysmonitor.sh | 46 +++++++++++++++++ .../targetcli/oe_test_service_targetclid.sh | 42 +++++++++++++++ 22 files changed, 585 insertions(+), 2 deletions(-) create mode 100644 suite2cases/nvme-snsd.json create mode 100644 suite2cases/opengauss.json create mode 100644 suite2cases/patch-tracking.json create mode 100644 suite2cases/secpaver.json create mode 100644 suite2cases/sysmonitor-kmod.json create mode 100755 testcases/cli-test/nvme-snsd/common/snsd.conf create mode 100644 testcases/cli-test/nvme-snsd/oe_test_service_nvme-snsd.sh create mode 100644 testcases/cli-test/obs-server/oe_test_service_obsredis.sh create mode 100644 testcases/cli-test/opengauss/oe_test_service_opengauss.sh create mode 100644 testcases/cli-test/ostree/oe_test_service_ostree-prepare-root.sh create mode 100644 testcases/cli-test/ostree/oe_test_service_ostree-remount.sh create mode 100644 testcases/cli-test/patch-tracking/oe_test_service_patch-tracking.sh create mode 100644 testcases/cli-test/patch-tracking/settings.conf create mode 100644 testcases/cli-test/secpaver/oe_test_service_pavd.sh create mode 100644 testcases/cli-test/syscare/oe_test_service_syscare.sh create mode 100644 testcases/cli-test/syscare/oe_test_service_upatch.sh create mode 100644 testcases/cli-test/sysmonitor-kmod/oe_test_service_sysmonitor.sh create mode 100644 testcases/cli-test/targetcli/oe_test_service_targetclid.sh diff --git a/suite2cases/nvme-snsd.json b/suite2cases/nvme-snsd.json new file mode 100644 index 000000000..75b07f0f1 --- /dev/null +++ b/suite2cases/nvme-snsd.json @@ -0,0 +1,8 @@ +{ + "path": "$OET_PATH/testcases/cli-test/nvme-snsd", + "cases": [ + { + "name": "oe_test_service_nvme-snsd" + } + ] +} diff --git a/suite2cases/obs-server.json b/suite2cases/obs-server.json index b231e2eec..145e163bc 100644 --- a/suite2cases/obs-server.json +++ b/suite2cases/obs-server.json @@ -87,6 +87,9 @@ }, { "name":"oe_test_service_obssourcepublish" + }, + { + "name":"oe_test_service_obsredis" } ] -} \ No newline at end of file +} diff --git a/suite2cases/opengauss.json b/suite2cases/opengauss.json new file mode 100644 index 000000000..72ef71b83 --- /dev/null +++ b/suite2cases/opengauss.json @@ -0,0 +1,8 @@ +{ + "path": "$OET_PATH/testcases/cli-test/opengauss", + "cases": [ + { + "name": "oe_test_service_opengauss" + } + ] +} diff --git a/suite2cases/ostree.json b/suite2cases/ostree.json index 69d647d81..2683f80eb 100644 --- a/suite2cases/ostree.json +++ b/suite2cases/ostree.json @@ -3,6 +3,12 @@ "cases": [ { "name": "oe_test_service_ostree-finalize-staged" + }, + { + "name": "oe_test_service_ostree-prepare-root" + }, + { + "name": "oe_test_service_ostree-remount" } ] } diff --git a/suite2cases/patch-tracking.json b/suite2cases/patch-tracking.json new file mode 100644 index 000000000..59acb5dde --- /dev/null +++ b/suite2cases/patch-tracking.json @@ -0,0 +1,8 @@ +{ + "path": "$OET_PATH/testcases/cli-test/patch-tracking", + "cases": [ + { + "name": "oe_test_service_patch-tracking" + } + ] +} diff --git a/suite2cases/secpaver.json b/suite2cases/secpaver.json new file mode 100644 index 000000000..8b2767e2c --- /dev/null +++ b/suite2cases/secpaver.json @@ -0,0 +1,8 @@ +{ + "path": "$OET_PATH/testcases/cli-test/secpaver", + "cases": [ + { + "name": "oe_test_service_pavd" + } + ] +} diff --git a/suite2cases/syscare.json b/suite2cases/syscare.json index 6f6a7ca1b..f24b0ab15 100644 --- a/suite2cases/syscare.json +++ b/suite2cases/syscare.json @@ -12,6 +12,12 @@ }, { "name":"oe_test_syscare_build_error_param" + }, + { + "name": "oe_test_service_syscare" + }, + { + "name": "oe_test_service_upatch" } ] } diff --git a/suite2cases/sysmonitor-kmod.json b/suite2cases/sysmonitor-kmod.json new file mode 100644 index 000000000..822eaf2c9 --- /dev/null +++ b/suite2cases/sysmonitor-kmod.json @@ -0,0 +1,8 @@ +{ + "path": "$OET_PATH/testcases/cli-test/sysmonitor-kmod", + "cases": [ + { + "name": "oe_test_service_sysmonitor" + } + ] +} diff --git a/suite2cases/targetcli.json b/suite2cases/targetcli.json index da887cc8d..9d243d269 100644 --- a/suite2cases/targetcli.json +++ b/suite2cases/targetcli.json @@ -12,6 +12,12 @@ }, { "name": "oe_test_targetcli_04" + }, + { + "name": "oe_test_socket_targetclid" + }, + { + "name": "oe_test_service_targetclid" } ] -} \ No newline at end of file +} diff --git a/testcases/cli-test/nvme-snsd/common/snsd.conf b/testcases/cli-test/nvme-snsd/common/snsd.conf new file mode 100755 index 000000000..5280001c9 --- /dev/null +++ b/testcases/cli-test/nvme-snsd/common/snsd.conf @@ -0,0 +1,22 @@ +/*----------------------------------------------* + * Configuration Body * + *----------------------------------------------*/ + [BASE] + ; The delay time of disconnecting device when net link down. Unit is second. + ; The recommended value is 0. + --restrain-time = 0 + + [SW] + ; Switching network configuration, mandatory: --host-traddr, --protocol + ; If "--host-traddr" is set to "any", other IP addresses cannot be configured for the switching network, All customer networks support SNSD. + ; eg: --host-traddr = xxxx | --protocol = roce + ;--host-traddr = 2.20.10.2 | --protocol = roce + ;--host-traddr = 2.50.10.2 | --protocol = roce + + [DC] + ; Configuration of the directly connected network, mandatory: --host-traddr, --protocol, --traddr + ; eg: --host-traddr = xxxx | --traddr = xxxx | --protocol = roce + ;--host-traddr = 123.2.1.122 | --traddr = 1.1.1.2 | --protocol = roce + ;--host-traddr = 2.30.10.2 | --traddr = 1.1.1.2 | --protocol = roce + + diff --git a/testcases/cli-test/nvme-snsd/oe_test_service_nvme-snsd.sh b/testcases/cli-test/nvme-snsd/oe_test_service_nvme-snsd.sh new file mode 100644 index 000000000..cdb55bbd4 --- /dev/null +++ b/testcases/cli-test/nvme-snsd/oe_test_service_nvme-snsd.sh @@ -0,0 +1,46 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test nvme-snsd.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "nvme-snsd" + mkdir -p /etc/nvme/ + cp -p common/snsd.conf /etc/nvme/ + LOG_INFO "End to prepare the test environment." +} + + +function run_test() { + LOG_INFO "Start to run test." + test_execution nvme-snsd.service + test_reload nvme-snsd.service + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + systemctl stop nvme-snsd.service + DNF_REMOVE "$@" + rm -rf /etc/nvme + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/cli-test/obs-server/oe_test_service_obsredis.sh b/testcases/cli-test/obs-server/oe_test_service_obsredis.sh new file mode 100644 index 000000000..553f594e4 --- /dev/null +++ b/testcases/cli-test/obs-server/oe_test_service_obsredis.sh @@ -0,0 +1,50 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test obsredis.service restart +# ############################################# +#shellcheck disable=SC1091,SC2016 +source "./common.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + env_pre + dnf install -y redis + systemctl start redis + cp -r /usr/lib/obs/server/BSConfig.pm /usr/lib/obs/server/BSConfig.pm_bak + echo 'our $redisserver = "redis://$hostname:6379";' >> /usr/lib/obs/server/BSConfig.pm + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_execution obsredis.service + test_reload obsredis.service + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + systemctl stop obsredis.service + systemctl stop redis + rm -rf /usr/lib/obs/server/BSConfig.pm + mv /usr/lib/obs/server/BSConfig.pm_bak /usr/lib/obs/server/BSConfig.pm + dnf remove -y redis + env_post + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/cli-test/opengauss/oe_test_service_opengauss.sh b/testcases/cli-test/opengauss/oe_test_service_opengauss.sh new file mode 100644 index 000000000..0378be031 --- /dev/null +++ b/testcases/cli-test/opengauss/oe_test_service_opengauss.sh @@ -0,0 +1,42 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test opengauss.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL opengauss + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_execution opengauss.service + test_reload opengauss.service + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + systemctl stop opengauss.service + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/cli-test/ostree/oe_test_service_ostree-prepare-root.sh b/testcases/cli-test/ostree/oe_test_service_ostree-prepare-root.sh new file mode 100644 index 000000000..e55ff24f9 --- /dev/null +++ b/testcases/cli-test/ostree/oe_test_service_ostree-prepare-root.sh @@ -0,0 +1,40 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test ostree-prepare-root.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL ostree + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_oneshot ostree-prepare-root.service 'inactive (dead)' + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/cli-test/ostree/oe_test_service_ostree-remount.sh b/testcases/cli-test/ostree/oe_test_service_ostree-remount.sh new file mode 100644 index 000000000..5f4ab48d3 --- /dev/null +++ b/testcases/cli-test/ostree/oe_test_service_ostree-remount.sh @@ -0,0 +1,40 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test ostree-remount.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL ostree + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_oneshot ostree-remount.service 'inactive (dead)' + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/cli-test/patch-tracking/oe_test_service_patch-tracking.sh b/testcases/cli-test/patch-tracking/oe_test_service_patch-tracking.sh new file mode 100644 index 000000000..c5aef6c2c --- /dev/null +++ b/testcases/cli-test/patch-tracking/oe_test_service_patch-tracking.sh @@ -0,0 +1,51 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test patch-tracking.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL patch-tracking + openssl req -x509 -days 3650 -subj "/CN=self-signed" \ +-nodes -newkey rsa:4096 -keyout self-signed.key -out self-signed.crt + mv self-signed.key self-signed.crt /etc/patch-tracking + mv /etc/patch-tracking/settings.conf /etc/patch-tracking/settings.conf_bak + cp -r ./settings.conf /etc/patch-tracking/ + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_execution patch-tracking.service + test_reload patch-tracking.service + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + systemctl stop patch-tracking.service + rm -rf /etc/patch-tracking/elf-signed.key /etc/patch-tracking/self-signed.crt + rm -rf /etc/patch-tracking/settings.conf + mv /etc/patch-tracking/settings.conf_bak /etc/patch-tracking/settings.conf + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" + diff --git a/testcases/cli-test/patch-tracking/settings.conf b/testcases/cli-test/patch-tracking/settings.conf new file mode 100644 index 000000000..114f54568 --- /dev/null +++ b/testcases/cli-test/patch-tracking/settings.conf @@ -0,0 +1,17 @@ +# server settings +LISTEN = "127.0.0.1:5001" + +# GitHub API settings +GITHUB_ACCESS_TOKEN = "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" + +# Gitee API settings +GITEE_ACCESS_TOKEN = "b32681b84f9e3d9c65da427d065be14e" + +# Time interval +SCAN_DB_INTERVAL = 3600 + +# username +USER = "admin" + +# password +PASSWORD = "260000$CYJ090IA5CYs2qgV$f93ce626b85e41d93ab1c334a60781dc845ccb323099e9091aa273232e1dbbaa" diff --git a/testcases/cli-test/secpaver/oe_test_service_pavd.sh b/testcases/cli-test/secpaver/oe_test_service_pavd.sh new file mode 100644 index 000000000..66667ad8a --- /dev/null +++ b/testcases/cli-test/secpaver/oe_test_service_pavd.sh @@ -0,0 +1,42 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test pavd.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL secpaver + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_execution pavd.service + test_reload pavd.service + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + systemctl stop pavd.service + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/cli-test/syscare/oe_test_service_syscare.sh b/testcases/cli-test/syscare/oe_test_service_syscare.sh new file mode 100644 index 000000000..fcc575dea --- /dev/null +++ b/testcases/cli-test/syscare/oe_test_service_syscare.sh @@ -0,0 +1,42 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test syscare.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL syscare + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_execution syscare.service + test_reload syscare.service + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + systemctl stop syscare.service + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/cli-test/syscare/oe_test_service_upatch.sh b/testcases/cli-test/syscare/oe_test_service_upatch.sh new file mode 100644 index 000000000..fd9037125 --- /dev/null +++ b/testcases/cli-test/syscare/oe_test_service_upatch.sh @@ -0,0 +1,42 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test upatch.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL syscare-build + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_execution upatch.service + test_reload upatch.service + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + systemctl stop upatch.service + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/cli-test/sysmonitor-kmod/oe_test_service_sysmonitor.sh b/testcases/cli-test/sysmonitor-kmod/oe_test_service_sysmonitor.sh new file mode 100644 index 000000000..d9a696c90 --- /dev/null +++ b/testcases/cli-test/sysmonitor-kmod/oe_test_service_sysmonitor.sh @@ -0,0 +1,46 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test sysmonitor.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL sysmonitor-kmod + log_time="$(date '+%Y-%m-%d %T')" + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_restart sysmonitor.service + test_enabled sysmonitor.service + journalctl --since "${log_time}" -u sysmonitor.service | grep -i "fail\|error" | grep -v -i "DEBUG\|INFO\|WARNING\|error\[3\]\|error\[1\]\|process fd num monitor" + CHECK_RESULT $? 0 1 "There is an error message for the log of sysmonitor.service" + test_reload sysmonitor.service + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + systemctl stop sysmonitor.service + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/cli-test/targetcli/oe_test_service_targetclid.sh b/testcases/cli-test/targetcli/oe_test_service_targetclid.sh new file mode 100644 index 000000000..e320c6b9a --- /dev/null +++ b/testcases/cli-test/targetcli/oe_test_service_targetclid.sh @@ -0,0 +1,42 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more detaitest -f. + +# ############################################# +# @Author : zhangpanting +# @Contact : 1768492250@qq.com +# @Date : 2024/7/10 +# @License : Mulan PSL v2 +# @Desc : Test targetclid.service restart +# ############################################# +#shellcheck disable=SC1091 +source "../common/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL targetcli + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + test_execution targetclid.service + test_reload targetclid.service + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + systemctl stop targetclid.service + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" -- Gitee From bb6f7022e9a6d817667727aaacdd06d854b5b4c2 Mon Sep 17 00:00:00 2001 From: lihuan-uniontech Date: Wed, 14 Aug 2024 09:58:17 +0800 Subject: [PATCH 02/14] add testcase oe_test_bc_04 add testcase bc_04 --- suite2cases/smoke-basic-os.json | 3 ++ .../oe_test_bc/oe_test_bc_04.sh | 47 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 testcases/smoke-test/smoke-basic-os/oe_test_bc/oe_test_bc_04.sh diff --git a/suite2cases/smoke-basic-os.json b/suite2cases/smoke-basic-os.json index ec7907db4..5909984d5 100755 --- a/suite2cases/smoke-basic-os.json +++ b/suite2cases/smoke-basic-os.json @@ -271,6 +271,9 @@ { "name": "oe_test_bc_03" }, + { + "name": "oe_test_bc_04" + }, { "name": "oe_test_bridge-utils_01" }, diff --git a/testcases/smoke-test/smoke-basic-os/oe_test_bc/oe_test_bc_04.sh b/testcases/smoke-test/smoke-basic-os/oe_test_bc/oe_test_bc_04.sh new file mode 100644 index 000000000..4128c3f5d --- /dev/null +++ b/testcases/smoke-test/smoke-basic-os/oe_test_bc/oe_test_bc_04.sh @@ -0,0 +1,47 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : lihuan +# @Contact : lihuan@uniontech.com +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : File system common command test-top +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL bc + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + echo "define fib(n) { if (n <= 1) return n; return fib(n-1) + fib(n-2) }; fib(10)" | bc | grep "55" + CHECK_RESULT $? 0 0 "Fibonacci sequence calculation failed" + echo "define gcd(a, b) { if (b == 0) return a; return gcd(b, a % b) }; gcd(48, 18)" | bc | grep "6" + CHECK_RESULT $? 0 0 "GCD calculation failed" + echo "scale=10; 4*a(1)" | bc -l | grep "3.1415926532" + CHECK_RESULT $? 0 0 "Pi calculation failed" + echo "define c_to_f(c) { return (c * 9 / 5) + 32 }; c_to_f(100)" | bc | grep "212" + CHECK_RESULT $? 0 0 "Celsius to Fahrenheit conversion failed" + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" \ No newline at end of file -- Gitee From d73e1c11d7674c1390a21ad6c638a88f70d74a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E6=A2=A6=E8=BE=B0?= <1548214697@qq.com> Date: Wed, 14 Aug 2024 06:40:06 +0000 Subject: [PATCH 03/14] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20oe=5Ftest=5Flvm2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- testcases/smoke-test/smoke-basic-os/oe_test_lvm2/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 testcases/smoke-test/smoke-basic-os/oe_test_lvm2/.keep diff --git a/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/.keep b/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/.keep new file mode 100644 index 000000000..e69de29bb -- Gitee From a82e230598ad745b79fcc799319da0a0b40a7b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E6=A2=A6=E8=BE=B0?= <1548214697@qq.com> Date: Wed, 14 Aug 2024 06:45:04 +0000 Subject: [PATCH 04/14] add testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 顾梦辰 <1548214697@qq.com> --- .../oe_test_lvm2/oe_test_lvm2.sh | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh diff --git a/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh b/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh new file mode 100644 index 000000000..143b9cee6 --- /dev/null +++ b/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh @@ -0,0 +1,107 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : gumengchen +# @Contact : gumengchen@huawei.com +# @Date : 2024-08-06 +# @License : Mulan PSL v2 +# @Desc : test arch +# ############################################ + +#shellcheck disable=SC2034 +#shellcheck disable=SC2119 +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment!" + DNF_INSTALL lvm2 + dd if=/dev/zero of=/tmp/ramdisk bs=1M count=512 + dd if=/dev/zero of=/tmp/ramdisk1 bs=1M count=512 + losetup /dev/loop0 /tmp/ramdisk + losetup /dev/loop1 /tmp/ramdisk1 + mkfs -t ext4 /dev/loop0 + mkfs -t ext4 /dev/loop1 + version_id=$(grep "VERSION_ID" /etc/os-release | awk -F "=" '{print$NF}' | awk -F "\"" '{print$2}') + LOG_INFO "End to prepare the test environment!" +} + +function run_test() { + LOG_INFO "Start executing testcase!" + LOG_INFO "Start to create" + pvcreate -y /dev/loop0 --setphysicalvolumesize 100MB | grep "successfully created" + CHECK_RESULT $? + pvcreate -y /dev/loop0 + CHECK_RESULT $? + pvcreate -y /dev/loop1 + CHECK_RESULT $? + vgcreate test /dev/loop0 /dev/loop1 + CHECK_RESULT $? + LOG_INFO "Start to change" + pvchange --addtag gh /dev/loop0 + CHECK_RESULT $? + pvdisplay -C -a | grep "/dev/loop0" + CHECK_RESULT $? + LOG_INFO "Start to remove" + vgreduce test /dev/loop0 + CHECK_RESULT $? + pvremove -f /dev/loop0 + CHECK_RESULT $? + pvcreate -y /dev/loop0 + CHECK_RESULT $? 0 0 "Failed to reduce /dev/loop0" + LOG_INFO "/dev/loop0 is not in test" + LOG_INFO "Start to resize" + pvresize -y /dev/loop1 --setphysicalvolumesize 200MB + CHECK_RESULT $? + pvdisplay -C -a | grep "/dev/loop1" + CHECK_RESULT $? + LOG_INFO "Start to extend" + vgextend test /dev/loop0 + CHECK_RESULT $? 0 0 "Failed to extend volume group test" + vgdisplay + LOG_INFO "Start to export" + vgexport test | grep "successfully exported" + CHECK_RESULT $? 0 0 "failed to export VG test" + vgimport test + CHECK_RESULT $? 0 0 "failed to import VG test" + LOG_INFO "Start to create LV" + lvcreate -L 100M -n lv1 test + CHECK_RESULT $? + lvdisplay + lvextend -L 104M test/lv1 + CHECK_RESULT $? + lvdisplay | grep lv1 + LOG_INFO "Start to rename" + vgrename test test1 | grep "successfully renamed" + CHECK_RESULT $? + vgs 2>&1 | grep "test1" + CHECK_RESULT $? + + LOG_INFO "End executing testcase!" +} + + +function post_test() { + LOG_INFO "Start environment cleanup." + lvremove -f test1/lv1 + vgremove -f test1 + pvremove -f /dev/loop0 /dev/loop1 + DNF_REMOVE + # 删除RAM盘 + losetup -d /dev/loop0 + losetup -d /dev/loop1 + rm -f /tmp/ramdisk + rm -f /tmp/ramdisk1 + LOG_INFO "Finish environment cleanup." +} + +main "$@" + -- Gitee From cac708ce324e3b6eb4918ad738e36188e43fb237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E6=A2=A6=E8=BE=B0?= <1548214697@qq.com> Date: Wed, 14 Aug 2024 06:50:30 +0000 Subject: [PATCH 05/14] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20te?= =?UTF-8?q?stcases/smoke-test/smoke-basic-os/oe=5Ftest=5Flvm2/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- testcases/smoke-test/smoke-basic-os/oe_test_lvm2/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 testcases/smoke-test/smoke-basic-os/oe_test_lvm2/.keep diff --git a/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/.keep b/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/.keep deleted file mode 100644 index e69de29bb..000000000 -- Gitee From 045cb23d4e7bb5ef29511822a3c8c5cc601f8b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E6=A2=A6=E8=BE=B0?= <1548214697@qq.com> Date: Wed, 14 Aug 2024 07:21:03 +0000 Subject: [PATCH 06/14] update testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 顾梦辰 <1548214697@qq.com> --- .../oe_test_lvm2/oe_test_lvm2.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh b/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh index 143b9cee6..0c0b885f3 100644 --- a/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh +++ b/testcases/smoke-test/smoke-basic-os/oe_test_lvm2/oe_test_lvm2.sh @@ -37,48 +37,51 @@ function pre_test() { function run_test() { LOG_INFO "Start executing testcase!" LOG_INFO "Start to create" - pvcreate -y /dev/loop0 --setphysicalvolumesize 100MB | grep "successfully created" - CHECK_RESULT $? pvcreate -y /dev/loop0 CHECK_RESULT $? pvcreate -y /dev/loop1 CHECK_RESULT $? vgcreate test /dev/loop0 /dev/loop1 CHECK_RESULT $? + vgdisplay + LOG_INFO "Start to change" pvchange --addtag gh /dev/loop0 CHECK_RESULT $? pvdisplay -C -a | grep "/dev/loop0" CHECK_RESULT $? + LOG_INFO "Start to remove" vgreduce test /dev/loop0 - CHECK_RESULT $? - pvremove -f /dev/loop0 - CHECK_RESULT $? - pvcreate -y /dev/loop0 CHECK_RESULT $? 0 0 "Failed to reduce /dev/loop0" + vgdisplay LOG_INFO "/dev/loop0 is not in test" + LOG_INFO "Start to resize" pvresize -y /dev/loop1 --setphysicalvolumesize 200MB CHECK_RESULT $? pvdisplay -C -a | grep "/dev/loop1" CHECK_RESULT $? + LOG_INFO "Start to extend" vgextend test /dev/loop0 CHECK_RESULT $? 0 0 "Failed to extend volume group test" vgdisplay + LOG_INFO "Start to export" vgexport test | grep "successfully exported" CHECK_RESULT $? 0 0 "failed to export VG test" vgimport test CHECK_RESULT $? 0 0 "failed to import VG test" + LOG_INFO "Start to create LV" lvcreate -L 100M -n lv1 test CHECK_RESULT $? lvdisplay lvextend -L 104M test/lv1 - CHECK_RESULT $? + CHECK_RESULT $? 0 0 "Failed to extend lv1" lvdisplay | grep lv1 + LOG_INFO "Start to rename" vgrename test test1 | grep "successfully renamed" CHECK_RESULT $? @@ -95,7 +98,7 @@ function post_test() { vgremove -f test1 pvremove -f /dev/loop0 /dev/loop1 DNF_REMOVE - # 删除RAM盘 + losetup -d /dev/loop0 losetup -d /dev/loop1 rm -f /tmp/ramdisk -- Gitee From 6bfae1834c2dbea13a2c5a60895bbd2e19bf9619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=BE=E6=A2=A6=E8=BE=B0?= <1548214697@qq.com> Date: Wed, 14 Aug 2024 07:32:50 +0000 Subject: [PATCH 07/14] update suite2cases/smoke-basic-os.json. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 顾梦辰 <1548214697@qq.com> --- suite2cases/smoke-basic-os.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/suite2cases/smoke-basic-os.json b/suite2cases/smoke-basic-os.json index ec7907db4..eb0e9851d 100755 --- a/suite2cases/smoke-basic-os.json +++ b/suite2cases/smoke-basic-os.json @@ -121,6 +121,9 @@ { "name": "oe_test_lsscsi" }, + { + "name": "oe_test_lvm2" + }, { "name": "oe_test_lzo" }, -- Gitee From 5eb8a0db999cbe88fe15092d8ce0c8f7a3e40395 Mon Sep 17 00:00:00 2001 From: honghua Date: Wed, 14 Aug 2024 20:03:23 +0800 Subject: [PATCH 08/14] update' git --- .../network/netperf_network/oe_test_netperf_network.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh b/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh index 667842b33..154e04d53 100644 --- a/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh +++ b/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh @@ -45,14 +45,14 @@ function run_test() { echo " #!/bin/bash for i in 1 64 128 256 512 1024 1500 2048 4096 9000 16384 32768;do - netperf -t TCP_STREAM -H ${NODE2_IPV4} -p 49999 -l 60 -- -m $i | tail -n 1|awk -F ' ' '{print $NF}' >> /opt/netperf_tcp_throughput.txt + netperf -t TCP_STREAM -H ${NODE2_IPV4} -p 49999 -l 60 -- -m $i | tail -n 1|awk '{print $NF}' >> /opt/netperf_tcp_throughput.txt done for i in 1 64 128 256 512 1024 1500 2048 4096 9000 16384 32768;do - netperf -t UDP_STREAM -H ${NODE2_IPV4} -p 49999 -l 60 -- -m $i -R 1 | tail -n 1|awk -F ' ' '{print $NF}' >> /opt/netperf_udp_throughput.txt + netperf -t UDP_STREAM -H ${NODE2_IPV4} -p 49999 -l 60 -- -m $i -R 1 | tail -n 1|awk '{print $NF}' >> /opt/netperf_udp_throughput.txt done -netperf -t TCP_RR -H ${NODE2_IPV4} -p 49999 | tail -n 1|awk -F ' ' '{print $NF}' >> /opt/netperf_tcp_rr_throughput.txt -netperf -t TCP_CRR -H ${NODE2_IPV4} -p 49999 | tail -n 1|awk -F ' ' '{print $NF}' >> /opt/netperf_tcp_crr_throughput.txt -netperf -t UDP_RR -H ${NODE2_IPV4} -p 49999 | tail -n 1|awk -F ' ' '{print $NF}' >> /opt/netperf_udp_rr_throughput.txt +netperf -t TCP_RR -H ${NODE2_IPV4} -p 49999 | tail -n 1|awk '{print $NF}' >> /opt/netperf_tcp_rr_throughput.txt +netperf -t TCP_CRR -H ${NODE2_IPV4} -p 49999 | tail -n 1|awk '{print $NF}' >> /opt/netperf_tcp_crr_throughput.txt +netperf -t UDP_RR -H ${NODE2_IPV4} -p 49999 | tail -n 1|awk '{print $NF}' >> /opt/netperf_udp_rr_throughput.txt " > test_netperf.sh chmod 755 test_netperf.sh SSH_CMD "netserver -p 49999" ${NODE2_IPV4} ${NODE2_PASSWORD} ${NODE2_USER} -- Gitee From 62fd7b575c4d5681c2f6b5ccaadaf4fc68a64cfd Mon Sep 17 00:00:00 2001 From: honghua Date: Thu, 15 Aug 2024 08:35:00 +0800 Subject: [PATCH 09/14] update ltp path --- suite2cases/ltp_can.json | 2 +- suite2cases/ltp_cap_bounds.json | 2 +- suite2cases/ltp_commands.json | 2 +- suite2cases/ltp_containers.json | 2 +- suite2cases/ltp_controllers.json | 2 +- suite2cases/ltp_cpuhotplug.json | 2 +- suite2cases/ltp_crypto.json | 2 +- suite2cases/ltp_cve.json | 2 +- suite2cases/ltp_dio.json | 2 +- suite2cases/ltp_fcntl-locktests.json | 2 +- suite2cases/ltp_filecaps.json | 2 +- suite2cases/ltp_fs.json | 2 +- suite2cases/ltp_fs_bind.json | 2 +- suite2cases/ltp_fs_perms_simple.json | 2 +- suite2cases/ltp_hugetlb.json | 2 +- suite2cases/ltp_hyperthreading.json | 2 +- suite2cases/ltp_input.json | 2 +- suite2cases/ltp_io.json | 2 +- suite2cases/ltp_ipc.json | 2 +- suite2cases/ltp_irq.json | 2 +- suite2cases/ltp_kernel_misc.json | 2 +- suite2cases/ltp_math.json | 2 +- suite2cases/ltp_mm.json | 2 +- suite2cases/ltp_net_ipv6_lib.json | 2 +- suite2cases/ltp_nptl.json | 2 +- suite2cases/ltp_power_management_tests.json | 2 +- suite2cases/ltp_pty.json | 2 +- suite2cases/ltp_sched.json | 2 +- suite2cases/ltp_syscalls.json | 2 +- suite2cases/ltp_uevent.json | 2 +- suite2cases/ltp_watchqueue.json | 2 +- 31 files changed, 31 insertions(+), 31 deletions(-) diff --git a/suite2cases/ltp_can.json b/suite2cases/ltp_can.json index 8e89e6a63..376b2899c 100644 --- a/suite2cases/ltp_can.json +++ b/suite2cases/ltp_can.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_can", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_can", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_cap_bounds.json b/suite2cases/ltp_cap_bounds.json index 09c0889ae..a6134835f 100644 --- a/suite2cases/ltp_cap_bounds.json +++ b/suite2cases/ltp_cap_bounds.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_cap_bounds", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_cap_bounds", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_commands.json b/suite2cases/ltp_commands.json index ff3a18004..deb9a3ea8 100644 --- a/suite2cases/ltp_commands.json +++ b/suite2cases/ltp_commands.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_commands", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_commands", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_containers.json b/suite2cases/ltp_containers.json index db1d4d33d..9b7f8b256 100644 --- a/suite2cases/ltp_containers.json +++ b/suite2cases/ltp_containers.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_containers", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_containers", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_controllers.json b/suite2cases/ltp_controllers.json index 30feed400..b78892d8c 100644 --- a/suite2cases/ltp_controllers.json +++ b/suite2cases/ltp_controllers.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_controllers", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_controllers", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_cpuhotplug.json b/suite2cases/ltp_cpuhotplug.json index 1eb0d679e..f8fb8c942 100644 --- a/suite2cases/ltp_cpuhotplug.json +++ b/suite2cases/ltp_cpuhotplug.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_cpuhotplug", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_cpuhotplug", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_crypto.json b/suite2cases/ltp_crypto.json index b541505f2..899f12a14 100644 --- a/suite2cases/ltp_crypto.json +++ b/suite2cases/ltp_crypto.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_crypto", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_crypto", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_cve.json b/suite2cases/ltp_cve.json index bebaf7f46..e5b2a56bf 100644 --- a/suite2cases/ltp_cve.json +++ b/suite2cases/ltp_cve.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_cve", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_cve", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_dio.json b/suite2cases/ltp_dio.json index 6780596a5..98da2065a 100644 --- a/suite2cases/ltp_dio.json +++ b/suite2cases/ltp_dio.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_dio", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_dio", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_fcntl-locktests.json b/suite2cases/ltp_fcntl-locktests.json index bc545d2ac..c89191a8a 100644 --- a/suite2cases/ltp_fcntl-locktests.json +++ b/suite2cases/ltp_fcntl-locktests.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_fcntl-locktests", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_fcntl-locktests", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_filecaps.json b/suite2cases/ltp_filecaps.json index 6fad92e02..d38adfb4a 100644 --- a/suite2cases/ltp_filecaps.json +++ b/suite2cases/ltp_filecaps.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_filecaps", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_filecaps", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_fs.json b/suite2cases/ltp_fs.json index 637b90399..8638e2e8a 100644 --- a/suite2cases/ltp_fs.json +++ b/suite2cases/ltp_fs.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_fs", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_fs", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_fs_bind.json b/suite2cases/ltp_fs_bind.json index f1e95f523..0e3a3013f 100644 --- a/suite2cases/ltp_fs_bind.json +++ b/suite2cases/ltp_fs_bind.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_fs_bind", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_fs_bind", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_fs_perms_simple.json b/suite2cases/ltp_fs_perms_simple.json index 87c56d8a0..d0c86a912 100644 --- a/suite2cases/ltp_fs_perms_simple.json +++ b/suite2cases/ltp_fs_perms_simple.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_fs_perms_simple", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_fs_perms_simple", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_hugetlb.json b/suite2cases/ltp_hugetlb.json index a4913d330..0936814fa 100644 --- a/suite2cases/ltp_hugetlb.json +++ b/suite2cases/ltp_hugetlb.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_hugetlb", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_hugetlb", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_hyperthreading.json b/suite2cases/ltp_hyperthreading.json index 22516559e..bb9c429fb 100644 --- a/suite2cases/ltp_hyperthreading.json +++ b/suite2cases/ltp_hyperthreading.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_hyperthreading", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_hyperthreading", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_input.json b/suite2cases/ltp_input.json index 8268dbe6c..1ff18a9af 100644 --- a/suite2cases/ltp_input.json +++ b/suite2cases/ltp_input.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_input", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_input", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_io.json b/suite2cases/ltp_io.json index 50edf9d24..3ce7837bf 100644 --- a/suite2cases/ltp_io.json +++ b/suite2cases/ltp_io.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_io", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_io", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_ipc.json b/suite2cases/ltp_ipc.json index a5416b66f..b14ead3b5 100644 --- a/suite2cases/ltp_ipc.json +++ b/suite2cases/ltp_ipc.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_ipc", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_ipc", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_irq.json b/suite2cases/ltp_irq.json index d145cebb0..e1034645e 100644 --- a/suite2cases/ltp_irq.json +++ b/suite2cases/ltp_irq.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_irq", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_irq", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_kernel_misc.json b/suite2cases/ltp_kernel_misc.json index aa1758aa2..8c6747643 100644 --- a/suite2cases/ltp_kernel_misc.json +++ b/suite2cases/ltp_kernel_misc.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_kernel_misc", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_kernel_misc", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_math.json b/suite2cases/ltp_math.json index f92923bc0..b3c814975 100644 --- a/suite2cases/ltp_math.json +++ b/suite2cases/ltp_math.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_math", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_math", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_mm.json b/suite2cases/ltp_mm.json index ed737619d..22521aaae 100644 --- a/suite2cases/ltp_mm.json +++ b/suite2cases/ltp_mm.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_mm", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_mm", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_net_ipv6_lib.json b/suite2cases/ltp_net_ipv6_lib.json index eb475a09f..c27bff50d 100644 --- a/suite2cases/ltp_net_ipv6_lib.json +++ b/suite2cases/ltp_net_ipv6_lib.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_net_ipv6_lib", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_ipv6_lib", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_nptl.json b/suite2cases/ltp_nptl.json index f131a44ea..f99f86d97 100644 --- a/suite2cases/ltp_nptl.json +++ b/suite2cases/ltp_nptl.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_nptl", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_nptl", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_power_management_tests.json b/suite2cases/ltp_power_management_tests.json index a33eb2ef7..b0021b0af 100644 --- a/suite2cases/ltp_power_management_tests.json +++ b/suite2cases/ltp_power_management_tests.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_power_management_tests", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_power_management_tests", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_pty.json b/suite2cases/ltp_pty.json index 38114f211..fb0fa5a76 100644 --- a/suite2cases/ltp_pty.json +++ b/suite2cases/ltp_pty.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_pty", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_pty", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_sched.json b/suite2cases/ltp_sched.json index d7604d9d5..0fde46e72 100644 --- a/suite2cases/ltp_sched.json +++ b/suite2cases/ltp_sched.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_sched", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_sched", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_syscalls.json b/suite2cases/ltp_syscalls.json index 0f7dd023c..605719070 100644 --- a/suite2cases/ltp_syscalls.json +++ b/suite2cases/ltp_syscalls.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_syscalls", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_syscalls", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_uevent.json b/suite2cases/ltp_uevent.json index e87725440..53612627f 100644 --- a/suite2cases/ltp_uevent.json +++ b/suite2cases/ltp_uevent.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_uevent", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_uevent", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_watchqueue.json b/suite2cases/ltp_watchqueue.json index a8f1f29bd..786201c0c 100644 --- a/suite2cases/ltp_watchqueue.json +++ b/suite2cases/ltp_watchqueue.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/ltp-test/ltp_watchqueue", + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_watchqueue", "cpu": 4, "memory": 8, "cases": [ -- Gitee From 88652776d155ccbfcf1cd7d1539fffa87bb99580 Mon Sep 17 00:00:00 2001 From: honghua Date: Thu, 15 Aug 2024 09:31:50 +0800 Subject: [PATCH 10/14] update --- suite2cases/ltp_cve.json | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh | 0 .../ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh | 0 92 files changed, 1 insertion(+), 1 deletion(-) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh (100%) rename testcases/{system-test/ltp-test => security_test}/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh (100%) diff --git a/suite2cases/ltp_cve.json b/suite2cases/ltp_cve.json index e5b2a56bf..9b2cb1d59 100644 --- a/suite2cases/ltp_cve.json +++ b/suite2cases/ltp_cve.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_cve", + "path": "${OET_PATH}/testcases/security_test/ltp_cve", "cpu": 4, "memory": 8, "cases": [ diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh similarity index 100% rename from testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh rename to testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh -- Gitee From 6f55dc427c259ca4f702be85b6353d714227c7a7 Mon Sep 17 00:00:00 2001 From: gao-shuai-123 Date: Thu, 15 Aug 2024 10:04:20 +0800 Subject: [PATCH 11/14] oe_test_zipsplit --- suite2cases/zipsplit.json | 9 ++++ .../cli-test/zipsplit/oe_test_zipsplit.sh | 52 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 suite2cases/zipsplit.json create mode 100755 testcases/cli-test/zipsplit/oe_test_zipsplit.sh diff --git a/suite2cases/zipsplit.json b/suite2cases/zipsplit.json new file mode 100644 index 000000000..301a6a494 --- /dev/null +++ b/suite2cases/zipsplit.json @@ -0,0 +1,9 @@ +{ + "path": "$OET_PATH/testcases/cli-test/zipsplit", + "cases": [ + { + "name": "oe_test_zipsplit" + } + ] +} + diff --git a/testcases/cli-test/zipsplit/oe_test_zipsplit.sh b/testcases/cli-test/zipsplit/oe_test_zipsplit.sh new file mode 100755 index 000000000..021606652 --- /dev/null +++ b/testcases/cli-test/zipsplit/oe_test_zipsplit.sh @@ -0,0 +1,52 @@ +#!/usr/bin/bash + +# Copyright (c) 2024. Huawei Technologies Co.,Ltd.ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : gaoshuaishuai +# @Contact : gaoshuaishuai@uniontech.com +# @Date : 2024/08/13 +# @License : Mulan PSL v2 +# @Desc : test zipsplit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environmental preparation." + cd /tmp || exit + echo "sdfassaaasd1223123223424435rrte" > test.txt + zip test.zip test.txt + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start to run test." + cd /tmp || exit + zipsplit -q test.zip + CHECK_RESULT $? 0 0 "Splitting the test.zip file in quiet mode failed" + zipsplit -t test.zip + CHECK_RESULT $? 0 0 "Failed to check file list size" + zipsplit -i test.zip + CHECK_RESULT $? 0 0 "Import file from compressed file for execution failed" + LOG_INFO "End of the test." +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /tmp/test.zip + rm -rf /tmp/test1.zip + rm -rf /tmp/zipsplit.idx + rm -rf /tmp/test.txt + LOG_INFO "Finish environment cleanup!" +} + +main "$@" -- Gitee From 532a9a07970b6721a3fb94af3f512937b7c5fe7c Mon Sep 17 00:00:00 2001 From: honghua Date: Thu, 15 Aug 2024 14:18:29 +0800 Subject: [PATCH 12/14] update --- suite2cases/ltp_Makefile.json | 31 ++ suite2cases/ltp_capability.json | 22 + suite2cases/ltp_crashme.json | 16 + suite2cases/ltp_cve.json | 2 +- suite2cases/ltp_dma_thread_diotest.json | 28 ++ suite2cases/ltp_fs_readonly.json | 172 +++++++ suite2cases/ltp_ima.json | 34 ++ suite2cases/ltp_kernel_misc.json | 3 + suite2cases/ltp_kvm.json | 22 + suite2cases/ltp_ltp-aio-stress.json | 169 +++++++ suite2cases/ltp_ltp-aiodio_part1.json | 427 ++++++++++++++++++ suite2cases/ltp_ltp-aiodio_part2.json | 256 +++++++++++ suite2cases/ltp_ltp-aiodio_part3.json | 70 +++ suite2cases/ltp_ltp-aiodio_part4.json | 184 ++++++++ suite2cases/ltp_mm.json | 3 + suite2cases/ltp_net_features.json | 193 ++++++++ suite2cases/ltp_net_ipv6.json | 40 ++ suite2cases/ltp_net_multicast.json | 19 + suite2cases/ltp_net_nfs.json | 346 ++++++++++++++ suite2cases/ltp_net_rpc_tests.json | 160 +++++++ suite2cases/ltp_net_sctp.json | 130 ++++++ suite2cases/ltp_net_stress_appl.json | 37 ++ suite2cases/ltp_net_stress_broken_ip.json | 40 ++ suite2cases/ltp_net_stress_interface.json | 82 ++++ suite2cases/ltp_net_stress_ipsec_dccp.json | 319 +++++++++++++ suite2cases/ltp_net_stress_ipsec_icmp.json | 265 +++++++++++ suite2cases/ltp_net_stress_ipsec_sctp.json | 319 +++++++++++++ suite2cases/ltp_net_stress_ipsec_tcp.json | 319 +++++++++++++ suite2cases/ltp_net_stress_ipsec_udp.json | 325 +++++++++++++ suite2cases/ltp_net_stress_multicast.json | 79 ++++ suite2cases/ltp_net_stress_route.json | 49 ++ suite2cases/ltp_net_tcp_cmds.json | 58 +++ suite2cases/ltp_net_tirpc_tests.json | 130 ++++++ suite2cases/ltp_numa.json | 67 +++ .../ltp_power_management_tests_exclusive.json | 22 + suite2cases/ltp_s390x_tests.json | 10 + suite2cases/ltp_sched.json | 6 + suite2cases/ltp_scsi_debug_part1.json | 427 ++++++++++++++++++ suite2cases/ltp_smack.json | 37 ++ suite2cases/ltp_smoketest.json | 46 ++ suite2cases/ltp_staging.json | 6 + suite2cases/ltp_syscalls-ipc.json | 178 ++++++++ suite2cases/ltp_syscalls.json | 157 +++++-- suite2cases/ltp_tpm_tools.json | 43 ++ suite2cases/ltp_tracing.json | 34 ++ .../oe_test_netperf_network.sh | 10 +- .../ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh | 2 +- .../oe_test_ltp_cve_cve-2017-1000111.sh | 2 +- .../oe_test_ltp_cve_cve-2017-1000112.sh | 2 +- .../oe_test_ltp_cve_cve-2017-1000364.sh | 2 +- .../oe_test_ltp_cve_cve-2017-1000380.sh | 2 +- .../oe_test_ltp_cve_cve-2017-1000405.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh | 2 +- .../oe_test_ltp_cve_cve-2018-1000001.sh | 2 +- .../oe_test_ltp_cve_cve-2018-1000199.sh | 2 +- .../oe_test_ltp_cve_cve-2018-1000204.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh | 2 +- .../oe_test_ltp_cve_cve-2021-4197_1.sh | 2 +- .../oe_test_ltp_cve_cve-2021-4197_2.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh | 2 +- .../ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh | 2 +- .../oe_test_ltp_Makefile_INSTALL_DIR.sh | 64 +++ .../oe_test_ltp_Makefile_INSTALL_MODE.sh | 64 +++ .../oe_test_ltp_Makefile_INSTALL_TARGETS.sh | 64 +++ .../oe_test_ltp_Makefile_MAKE_TARGETS.sh | 64 +++ .../oe_test_ltp_Makefile_UNWANTED_FILES.sh | 64 +++ .../oe_test_ltp_Makefile_include.sh | 64 +++ .../oe_test_ltp_Makefile_top_srcdir.sh | 64 +++ .../ltp_can/oe_test_ltp_can_can_bcm01.sh | 2 +- .../ltp_can/oe_test_ltp_can_can_filter.sh | 2 +- .../oe_test_ltp_can_can_rcv_own_msgs.sh | 2 +- .../oe_test_ltp_cap_bounds_Cap_bounds.sh | 2 +- .../oe_test_ltp_capability_cap_bounds.sh | 64 +++ ...oe_test_ltp_capability_check_keepcaps01.sh | 64 +++ ...oe_test_ltp_capability_check_keepcaps02.sh | 64 +++ ...oe_test_ltp_capability_check_keepcaps03.sh | 64 +++ .../oe_test_ltp_capability_filecaps.sh | 64 +++ .../oe_test_ltp_commands_ar_sh.sh | 2 +- .../oe_test_ltp_commands_cp01_sh.sh | 2 +- .../oe_test_ltp_commands_cpio01_sh.sh | 2 +- .../oe_test_ltp_commands_df01_sh.sh | 2 +- .../oe_test_ltp_commands_du01_sh.sh | 2 +- .../oe_test_ltp_commands_file01_sh.sh | 2 +- .../oe_test_ltp_commands_gdb01_sh.sh | 2 +- .../oe_test_ltp_commands_gzip01_sh.sh | 2 +- .../oe_test_ltp_commands_insmod01_sh.sh | 2 +- .../oe_test_ltp_commands_keyctl01_sh.sh | 2 +- .../oe_test_ltp_commands_ld01_sh.sh | 2 +- .../oe_test_ltp_commands_ldd01_sh.sh | 2 +- .../oe_test_ltp_commands_ln01_sh.sh | 2 +- .../oe_test_ltp_commands_logrotate_sh.sh | 2 +- .../oe_test_ltp_commands_lsmod01_sh.sh | 2 +- .../oe_test_ltp_commands_mkdir01_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_btrfs_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_ext2_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_ext3_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_ext4_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_minix_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_msdos_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_ntfs_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_vfat_sh.sh | 2 +- .../oe_test_ltp_commands_mkfs01_xfs_sh.sh | 2 +- .../oe_test_ltp_commands_mkswap01_sh.sh | 2 +- .../oe_test_ltp_commands_mv01_sh.sh | 2 +- .../oe_test_ltp_commands_nm01_sh.sh | 2 +- .../oe_test_ltp_commands_shell_test01.sh | 2 +- .../oe_test_ltp_commands_sysctl01_sh.sh | 2 +- .../oe_test_ltp_commands_sysctl02_sh.sh | 2 +- .../oe_test_ltp_commands_tar01_sh.sh | 2 +- .../oe_test_ltp_commands_unshare01_sh.sh | 2 +- .../oe_test_ltp_commands_unzip01_sh.sh | 2 +- .../oe_test_ltp_commands_wc01_sh.sh | 2 +- .../oe_test_ltp_commands_which01_sh.sh | 2 +- .../oe_test_ltp_containers_clock_gettime03.sh | 2 +- ...e_test_ltp_containers_clock_nanosleep03.sh | 2 +- ..._test_ltp_containers_mesgq_nstest_clone.sh | 2 +- ...e_test_ltp_containers_mesgq_nstest_none.sh | 2 +- ...est_ltp_containers_mesgq_nstest_unshare.sh | 2 +- .../oe_test_ltp_containers_mountns01.sh | 2 +- .../oe_test_ltp_containers_mountns02.sh | 2 +- .../oe_test_ltp_containers_mountns03.sh | 2 +- .../oe_test_ltp_containers_mountns04.sh | 2 +- .../oe_test_ltp_containers_mqns_01.sh | 2 +- .../oe_test_ltp_containers_mqns_01_clone.sh | 2 +- .../oe_test_ltp_containers_mqns_01_unshare.sh | 2 +- .../oe_test_ltp_containers_mqns_02.sh | 2 +- .../oe_test_ltp_containers_mqns_02_clone.sh | 2 +- .../oe_test_ltp_containers_mqns_02_unshare.sh | 2 +- .../oe_test_ltp_containers_mqns_03_clone.sh | 2 +- .../oe_test_ltp_containers_mqns_03_unshare.sh | 2 +- .../oe_test_ltp_containers_mqns_04_clone.sh | 2 +- .../oe_test_ltp_containers_mqns_04_unshare.sh | 2 +- .../oe_test_ltp_containers_msg_comm.sh | 2 +- ..._containers_netns_breakns_ip_ipv4_ioctl.sh | 2 +- ...ontainers_netns_breakns_ip_ipv4_netlink.sh | 2 +- ..._containers_netns_breakns_ip_ipv6_ioctl.sh | 2 +- ...ontainers_netns_breakns_ip_ipv6_netlink.sh | 2 +- ...ainers_netns_breakns_ns_exec_ipv4_ioctl.sh | 2 +- ...ners_netns_breakns_ns_exec_ipv4_netlink.sh | 2 +- ...ainers_netns_breakns_ns_exec_ipv6_ioctl.sh | 2 +- ...ners_netns_breakns_ns_exec_ipv6_netlink.sh | 2 +- ...ltp_containers_netns_comm_ip_ipv4_ioctl.sh | 2 +- ...p_containers_netns_comm_ip_ipv4_netlink.sh | 2 +- ...ltp_containers_netns_comm_ip_ipv6_ioctl.sh | 2 +- ...p_containers_netns_comm_ip_ipv6_netlink.sh | 2 +- ...ontainers_netns_comm_ns_exec_ipv4_ioctl.sh | 2 +- ...tainers_netns_comm_ns_exec_ipv4_netlink.sh | 2 +- ...ontainers_netns_comm_ns_exec_ipv6_ioctl.sh | 2 +- ...tainers_netns_comm_ns_exec_ipv6_netlink.sh | 2 +- .../oe_test_ltp_containers_netns_netlink.sh | 2 +- .../oe_test_ltp_containers_netns_sysfs.sh | 2 +- .../oe_test_ltp_containers_pidns01.sh | 2 +- .../oe_test_ltp_containers_pidns02.sh | 2 +- .../oe_test_ltp_containers_pidns03.sh | 2 +- .../oe_test_ltp_containers_pidns04.sh | 2 +- .../oe_test_ltp_containers_pidns05.sh | 2 +- .../oe_test_ltp_containers_pidns06.sh | 2 +- .../oe_test_ltp_containers_pidns10.sh | 2 +- .../oe_test_ltp_containers_pidns12.sh | 2 +- .../oe_test_ltp_containers_pidns13.sh | 2 +- .../oe_test_ltp_containers_pidns16.sh | 2 +- .../oe_test_ltp_containers_pidns17.sh | 2 +- .../oe_test_ltp_containers_pidns20.sh | 2 +- .../oe_test_ltp_containers_pidns30.sh | 2 +- .../oe_test_ltp_containers_pidns31.sh | 2 +- .../oe_test_ltp_containers_pidns32.sh | 2 +- .../oe_test_ltp_containers_sem_comm.sh | 2 +- ...oe_test_ltp_containers_sem_nstest_clone.sh | 2 +- .../oe_test_ltp_containers_sem_nstest_none.sh | 2 +- ..._test_ltp_containers_sem_nstest_unshare.sh | 2 +- ...e_test_ltp_containers_semtest_2ns_clone.sh | 2 +- ...oe_test_ltp_containers_semtest_2ns_none.sh | 2 +- ...test_ltp_containers_semtest_2ns_unshare.sh | 2 +- .../oe_test_ltp_containers_shm_comm.sh | 2 +- ...test_ltp_containers_shmem_2nstest_clone.sh | 2 +- ..._test_ltp_containers_shmem_2nstest_none.sh | 2 +- ...st_ltp_containers_shmem_2nstest_unshare.sh | 2 +- .../oe_test_ltp_containers_shmnstest_clone.sh | 2 +- .../oe_test_ltp_containers_shmnstest_none.sh | 2 +- ...e_test_ltp_containers_shmnstest_unshare.sh | 2 +- .../oe_test_ltp_containers_sysinfo03.sh | 2 +- .../oe_test_ltp_containers_timens01.sh | 2 +- .../oe_test_ltp_containers_timerfd04.sh | 2 +- .../oe_test_ltp_containers_userns01.sh | 2 +- .../oe_test_ltp_containers_userns02.sh | 2 +- .../oe_test_ltp_containers_userns03.sh | 2 +- .../oe_test_ltp_containers_userns04.sh | 2 +- .../oe_test_ltp_containers_userns05.sh | 2 +- .../oe_test_ltp_containers_userns06.sh | 2 +- .../oe_test_ltp_containers_userns07.sh | 2 +- .../oe_test_ltp_containers_userns08.sh | 2 +- .../oe_test_ltp_containers_utsname01.sh | 2 +- .../oe_test_ltp_containers_utsname02.sh | 2 +- .../oe_test_ltp_containers_utsname03_clone.sh | 2 +- ...e_test_ltp_containers_utsname03_unshare.sh | 2 +- .../oe_test_ltp_containers_utsname04_clone.sh | 2 +- ...e_test_ltp_containers_utsname04_unshare.sh | 2 +- .../oe_test_ltp_controllers_cgroup.sh | 2 +- .../oe_test_ltp_controllers_cgroup_core01.sh | 2 +- .../oe_test_ltp_controllers_cgroup_core02.sh | 2 +- .../oe_test_ltp_controllers_cgroup_core03.sh | 2 +- ...tp_controllers_cgroup_fj_function_blkio.sh | 2 +- ..._ltp_controllers_cgroup_fj_function_cpu.sh | 2 +- ..._controllers_cgroup_fj_function_cpuacct.sh | 2 +- ...p_controllers_cgroup_fj_function_cpuset.sh | 2 +- ...tp_controllers_cgroup_fj_function_debug.sh | 2 +- ..._controllers_cgroup_fj_function_devices.sh | 2 +- ..._controllers_cgroup_fj_function_freezer.sh | 2 +- ..._controllers_cgroup_fj_function_hugetlb.sh | 2 +- ...p_controllers_cgroup_fj_function_memory.sh | 2 +- ..._controllers_cgroup_fj_function_net_cls.sh | 2 +- ...controllers_cgroup_fj_function_net_prio.sh | 2 +- ...ntrollers_cgroup_fj_function_perf_event.sh | 2 +- ...ollers_cgroup_fj_stress_blkio_10_3_each.sh | 2 +- ...ollers_cgroup_fj_stress_blkio_10_3_none.sh | 2 +- ...rollers_cgroup_fj_stress_blkio_10_3_one.sh | 2 +- ...llers_cgroup_fj_stress_blkio_1_200_each.sh | 2 +- ...llers_cgroup_fj_stress_blkio_1_200_none.sh | 2 +- ...ollers_cgroup_fj_stress_blkio_1_200_one.sh | 2 +- ...llers_cgroup_fj_stress_blkio_200_1_each.sh | 2 +- ...llers_cgroup_fj_stress_blkio_200_1_none.sh | 2 +- ...ollers_cgroup_fj_stress_blkio_200_1_one.sh | 2 +- ...rollers_cgroup_fj_stress_blkio_2_2_each.sh | 2 +- ...rollers_cgroup_fj_stress_blkio_2_2_none.sh | 2 +- ...trollers_cgroup_fj_stress_blkio_2_2_one.sh | 2 +- ...rollers_cgroup_fj_stress_blkio_2_9_each.sh | 2 +- ...rollers_cgroup_fj_stress_blkio_2_9_none.sh | 2 +- ...trollers_cgroup_fj_stress_blkio_2_9_one.sh | 2 +- ...rollers_cgroup_fj_stress_blkio_3_3_each.sh | 2 +- ...rollers_cgroup_fj_stress_blkio_3_3_none.sh | 2 +- ...trollers_cgroup_fj_stress_blkio_3_3_one.sh | 2 +- ...rollers_cgroup_fj_stress_blkio_4_4_each.sh | 2 +- ...rollers_cgroup_fj_stress_blkio_4_4_none.sh | 2 +- ...trollers_cgroup_fj_stress_blkio_4_4_one.sh | 2 +- ...trollers_cgroup_fj_stress_cpu_10_3_each.sh | 2 +- ...trollers_cgroup_fj_stress_cpu_10_3_none.sh | 2 +- ...ntrollers_cgroup_fj_stress_cpu_10_3_one.sh | 2 +- ...rollers_cgroup_fj_stress_cpu_1_200_each.sh | 2 +- ...rollers_cgroup_fj_stress_cpu_1_200_none.sh | 2 +- ...trollers_cgroup_fj_stress_cpu_1_200_one.sh | 2 +- ...rollers_cgroup_fj_stress_cpu_200_1_each.sh | 2 +- ...rollers_cgroup_fj_stress_cpu_200_1_none.sh | 2 +- ...trollers_cgroup_fj_stress_cpu_200_1_one.sh | 2 +- ...ntrollers_cgroup_fj_stress_cpu_2_2_each.sh | 2 +- ...ntrollers_cgroup_fj_stress_cpu_2_2_none.sh | 2 +- ...ontrollers_cgroup_fj_stress_cpu_2_2_one.sh | 2 +- ...ntrollers_cgroup_fj_stress_cpu_2_9_each.sh | 2 +- ...ntrollers_cgroup_fj_stress_cpu_2_9_none.sh | 2 +- ...ontrollers_cgroup_fj_stress_cpu_2_9_one.sh | 2 +- ...ntrollers_cgroup_fj_stress_cpu_3_3_each.sh | 2 +- ...ntrollers_cgroup_fj_stress_cpu_3_3_none.sh | 2 +- ...ontrollers_cgroup_fj_stress_cpu_3_3_one.sh | 2 +- ...ntrollers_cgroup_fj_stress_cpu_4_4_each.sh | 2 +- ...ntrollers_cgroup_fj_stress_cpu_4_4_none.sh | 2 +- ...ontrollers_cgroup_fj_stress_cpu_4_4_one.sh | 2 +- ...lers_cgroup_fj_stress_cpuacct_10_3_each.sh | 2 +- ...lers_cgroup_fj_stress_cpuacct_10_3_none.sh | 2 +- ...llers_cgroup_fj_stress_cpuacct_10_3_one.sh | 2 +- ...ers_cgroup_fj_stress_cpuacct_1_200_each.sh | 2 +- ...ers_cgroup_fj_stress_cpuacct_1_200_none.sh | 2 +- ...lers_cgroup_fj_stress_cpuacct_1_200_one.sh | 2 +- ...ers_cgroup_fj_stress_cpuacct_200_1_each.sh | 2 +- ...ers_cgroup_fj_stress_cpuacct_200_1_none.sh | 2 +- ...lers_cgroup_fj_stress_cpuacct_200_1_one.sh | 2 +- ...llers_cgroup_fj_stress_cpuacct_2_2_each.sh | 2 +- ...llers_cgroup_fj_stress_cpuacct_2_2_none.sh | 2 +- ...ollers_cgroup_fj_stress_cpuacct_2_2_one.sh | 2 +- ...llers_cgroup_fj_stress_cpuacct_2_9_each.sh | 2 +- ...llers_cgroup_fj_stress_cpuacct_2_9_none.sh | 2 +- ...ollers_cgroup_fj_stress_cpuacct_2_9_one.sh | 2 +- ...llers_cgroup_fj_stress_cpuacct_3_3_each.sh | 2 +- ...llers_cgroup_fj_stress_cpuacct_3_3_none.sh | 2 +- ...ollers_cgroup_fj_stress_cpuacct_3_3_one.sh | 2 +- ...llers_cgroup_fj_stress_cpuacct_4_4_each.sh | 2 +- ...llers_cgroup_fj_stress_cpuacct_4_4_none.sh | 2 +- ...ollers_cgroup_fj_stress_cpuacct_4_4_one.sh | 2 +- ...llers_cgroup_fj_stress_cpuset_10_3_each.sh | 2 +- ...llers_cgroup_fj_stress_cpuset_10_3_none.sh | 2 +- ...ollers_cgroup_fj_stress_cpuset_10_3_one.sh | 2 +- ...lers_cgroup_fj_stress_cpuset_1_200_each.sh | 2 +- ...lers_cgroup_fj_stress_cpuset_1_200_none.sh | 2 +- ...llers_cgroup_fj_stress_cpuset_1_200_one.sh | 2 +- ...lers_cgroup_fj_stress_cpuset_200_1_each.sh | 2 +- ...lers_cgroup_fj_stress_cpuset_200_1_none.sh | 2 +- ...llers_cgroup_fj_stress_cpuset_200_1_one.sh | 2 +- ...ollers_cgroup_fj_stress_cpuset_2_2_each.sh | 2 +- ...ollers_cgroup_fj_stress_cpuset_2_2_none.sh | 2 +- ...rollers_cgroup_fj_stress_cpuset_2_2_one.sh | 2 +- ...ollers_cgroup_fj_stress_cpuset_2_9_each.sh | 2 +- ...ollers_cgroup_fj_stress_cpuset_2_9_none.sh | 2 +- ...rollers_cgroup_fj_stress_cpuset_2_9_one.sh | 2 +- ...ollers_cgroup_fj_stress_cpuset_3_3_each.sh | 2 +- ...ollers_cgroup_fj_stress_cpuset_3_3_none.sh | 2 +- ...rollers_cgroup_fj_stress_cpuset_3_3_one.sh | 2 +- ...ollers_cgroup_fj_stress_cpuset_4_4_each.sh | 2 +- ...ollers_cgroup_fj_stress_cpuset_4_4_none.sh | 2 +- ...rollers_cgroup_fj_stress_cpuset_4_4_one.sh | 2 +- ...ollers_cgroup_fj_stress_debug_10_3_each.sh | 2 +- ...ollers_cgroup_fj_stress_debug_10_3_none.sh | 2 +- ...rollers_cgroup_fj_stress_debug_10_3_one.sh | 2 +- ...llers_cgroup_fj_stress_debug_1_200_each.sh | 2 +- ...llers_cgroup_fj_stress_debug_1_200_none.sh | 2 +- ...ollers_cgroup_fj_stress_debug_1_200_one.sh | 2 +- ...llers_cgroup_fj_stress_debug_200_1_each.sh | 2 +- ...llers_cgroup_fj_stress_debug_200_1_none.sh | 2 +- ...ollers_cgroup_fj_stress_debug_200_1_one.sh | 2 +- ...rollers_cgroup_fj_stress_debug_2_2_each.sh | 2 +- ...rollers_cgroup_fj_stress_debug_2_2_none.sh | 2 +- ...trollers_cgroup_fj_stress_debug_2_2_one.sh | 2 +- ...rollers_cgroup_fj_stress_debug_2_9_each.sh | 2 +- ...rollers_cgroup_fj_stress_debug_2_9_none.sh | 2 +- ...trollers_cgroup_fj_stress_debug_2_9_one.sh | 2 +- ...rollers_cgroup_fj_stress_debug_3_3_each.sh | 2 +- ...rollers_cgroup_fj_stress_debug_3_3_none.sh | 2 +- ...trollers_cgroup_fj_stress_debug_3_3_one.sh | 2 +- ...rollers_cgroup_fj_stress_debug_4_4_each.sh | 2 +- ...rollers_cgroup_fj_stress_debug_4_4_none.sh | 2 +- ...trollers_cgroup_fj_stress_debug_4_4_one.sh | 2 +- ...lers_cgroup_fj_stress_devices_10_3_each.sh | 2 +- ...lers_cgroup_fj_stress_devices_10_3_none.sh | 2 +- ...llers_cgroup_fj_stress_devices_10_3_one.sh | 2 +- ...ers_cgroup_fj_stress_devices_1_200_each.sh | 2 +- ...ers_cgroup_fj_stress_devices_1_200_none.sh | 2 +- ...lers_cgroup_fj_stress_devices_1_200_one.sh | 2 +- ...ers_cgroup_fj_stress_devices_200_1_each.sh | 2 +- ...ers_cgroup_fj_stress_devices_200_1_none.sh | 2 +- ...lers_cgroup_fj_stress_devices_200_1_one.sh | 2 +- ...llers_cgroup_fj_stress_devices_2_2_each.sh | 2 +- ...llers_cgroup_fj_stress_devices_2_2_none.sh | 2 +- ...ollers_cgroup_fj_stress_devices_2_2_one.sh | 2 +- ...llers_cgroup_fj_stress_devices_2_9_each.sh | 2 +- ...llers_cgroup_fj_stress_devices_2_9_none.sh | 2 +- ...ollers_cgroup_fj_stress_devices_2_9_one.sh | 2 +- ...llers_cgroup_fj_stress_devices_3_3_each.sh | 2 +- ...llers_cgroup_fj_stress_devices_3_3_none.sh | 2 +- ...ollers_cgroup_fj_stress_devices_3_3_one.sh | 2 +- ...llers_cgroup_fj_stress_devices_4_4_each.sh | 2 +- ...llers_cgroup_fj_stress_devices_4_4_none.sh | 2 +- ...ollers_cgroup_fj_stress_devices_4_4_one.sh | 2 +- ...lers_cgroup_fj_stress_freezer_10_3_each.sh | 2 +- ...lers_cgroup_fj_stress_freezer_10_3_none.sh | 2 +- ...llers_cgroup_fj_stress_freezer_10_3_one.sh | 2 +- ...ers_cgroup_fj_stress_freezer_1_200_each.sh | 2 +- ...ers_cgroup_fj_stress_freezer_1_200_none.sh | 2 +- ...lers_cgroup_fj_stress_freezer_1_200_one.sh | 2 +- ...ers_cgroup_fj_stress_freezer_200_1_each.sh | 2 +- ...ers_cgroup_fj_stress_freezer_200_1_none.sh | 2 +- ...lers_cgroup_fj_stress_freezer_200_1_one.sh | 2 +- ...llers_cgroup_fj_stress_freezer_2_2_each.sh | 2 +- ...llers_cgroup_fj_stress_freezer_2_2_none.sh | 2 +- ...ollers_cgroup_fj_stress_freezer_2_2_one.sh | 2 +- ...llers_cgroup_fj_stress_freezer_2_9_each.sh | 2 +- ...llers_cgroup_fj_stress_freezer_2_9_none.sh | 2 +- ...ollers_cgroup_fj_stress_freezer_2_9_one.sh | 2 +- ...llers_cgroup_fj_stress_freezer_3_3_each.sh | 2 +- ...llers_cgroup_fj_stress_freezer_3_3_none.sh | 2 +- ...ollers_cgroup_fj_stress_freezer_3_3_one.sh | 2 +- ...llers_cgroup_fj_stress_freezer_4_4_each.sh | 2 +- ...llers_cgroup_fj_stress_freezer_4_4_none.sh | 2 +- ...ollers_cgroup_fj_stress_freezer_4_4_one.sh | 2 +- ...lers_cgroup_fj_stress_hugetlb_10_3_each.sh | 2 +- ...lers_cgroup_fj_stress_hugetlb_10_3_none.sh | 2 +- ...llers_cgroup_fj_stress_hugetlb_10_3_one.sh | 2 +- ...ers_cgroup_fj_stress_hugetlb_1_200_each.sh | 2 +- ...ers_cgroup_fj_stress_hugetlb_1_200_none.sh | 2 +- ...lers_cgroup_fj_stress_hugetlb_1_200_one.sh | 2 +- ...ers_cgroup_fj_stress_hugetlb_200_1_each.sh | 2 +- ...ers_cgroup_fj_stress_hugetlb_200_1_none.sh | 2 +- ...lers_cgroup_fj_stress_hugetlb_200_1_one.sh | 2 +- ...llers_cgroup_fj_stress_hugetlb_2_2_each.sh | 2 +- ...llers_cgroup_fj_stress_hugetlb_2_2_none.sh | 2 +- ...ollers_cgroup_fj_stress_hugetlb_2_2_one.sh | 2 +- ...llers_cgroup_fj_stress_hugetlb_2_9_each.sh | 2 +- ...llers_cgroup_fj_stress_hugetlb_2_9_none.sh | 2 +- ...ollers_cgroup_fj_stress_hugetlb_2_9_one.sh | 2 +- ...llers_cgroup_fj_stress_hugetlb_3_3_each.sh | 2 +- ...llers_cgroup_fj_stress_hugetlb_3_3_none.sh | 2 +- ...ollers_cgroup_fj_stress_hugetlb_3_3_one.sh | 2 +- ...llers_cgroup_fj_stress_hugetlb_4_4_each.sh | 2 +- ...llers_cgroup_fj_stress_hugetlb_4_4_none.sh | 2 +- ...ollers_cgroup_fj_stress_hugetlb_4_4_one.sh | 2 +- ...llers_cgroup_fj_stress_memory_10_3_each.sh | 2 +- ...llers_cgroup_fj_stress_memory_10_3_none.sh | 2 +- ...ollers_cgroup_fj_stress_memory_10_3_one.sh | 2 +- ...lers_cgroup_fj_stress_memory_1_200_each.sh | 2 +- ...lers_cgroup_fj_stress_memory_1_200_none.sh | 2 +- ...llers_cgroup_fj_stress_memory_1_200_one.sh | 2 +- ...lers_cgroup_fj_stress_memory_200_1_each.sh | 2 +- ...lers_cgroup_fj_stress_memory_200_1_none.sh | 2 +- ...llers_cgroup_fj_stress_memory_200_1_one.sh | 2 +- ...ollers_cgroup_fj_stress_memory_2_2_each.sh | 2 +- ...ollers_cgroup_fj_stress_memory_2_2_none.sh | 2 +- ...rollers_cgroup_fj_stress_memory_2_2_one.sh | 2 +- ...ollers_cgroup_fj_stress_memory_2_9_each.sh | 2 +- ...ollers_cgroup_fj_stress_memory_2_9_none.sh | 2 +- ...rollers_cgroup_fj_stress_memory_2_9_one.sh | 2 +- ...ollers_cgroup_fj_stress_memory_3_3_each.sh | 2 +- ...ollers_cgroup_fj_stress_memory_3_3_none.sh | 2 +- ...rollers_cgroup_fj_stress_memory_3_3_one.sh | 2 +- ...ollers_cgroup_fj_stress_memory_4_4_each.sh | 2 +- ...ollers_cgroup_fj_stress_memory_4_4_none.sh | 2 +- ...rollers_cgroup_fj_stress_memory_4_4_one.sh | 2 +- ...lers_cgroup_fj_stress_net_cls_10_3_each.sh | 2 +- ...lers_cgroup_fj_stress_net_cls_10_3_none.sh | 2 +- ...llers_cgroup_fj_stress_net_cls_10_3_one.sh | 2 +- ...ers_cgroup_fj_stress_net_cls_1_200_each.sh | 2 +- ...ers_cgroup_fj_stress_net_cls_1_200_none.sh | 2 +- ...lers_cgroup_fj_stress_net_cls_1_200_one.sh | 2 +- ...ers_cgroup_fj_stress_net_cls_200_1_each.sh | 2 +- ...ers_cgroup_fj_stress_net_cls_200_1_none.sh | 2 +- ...lers_cgroup_fj_stress_net_cls_200_1_one.sh | 2 +- ...llers_cgroup_fj_stress_net_cls_2_2_each.sh | 2 +- ...llers_cgroup_fj_stress_net_cls_2_2_none.sh | 2 +- ...ollers_cgroup_fj_stress_net_cls_2_2_one.sh | 2 +- ...llers_cgroup_fj_stress_net_cls_2_9_each.sh | 2 +- ...llers_cgroup_fj_stress_net_cls_2_9_none.sh | 2 +- ...ollers_cgroup_fj_stress_net_cls_2_9_one.sh | 2 +- ...llers_cgroup_fj_stress_net_cls_3_3_each.sh | 2 +- ...llers_cgroup_fj_stress_net_cls_3_3_none.sh | 2 +- ...ollers_cgroup_fj_stress_net_cls_3_3_one.sh | 2 +- ...llers_cgroup_fj_stress_net_cls_4_4_each.sh | 2 +- ...llers_cgroup_fj_stress_net_cls_4_4_none.sh | 2 +- ...ollers_cgroup_fj_stress_net_cls_4_4_one.sh | 2 +- ...ers_cgroup_fj_stress_net_prio_10_3_each.sh | 2 +- ...ers_cgroup_fj_stress_net_prio_10_3_none.sh | 2 +- ...lers_cgroup_fj_stress_net_prio_10_3_one.sh | 2 +- ...rs_cgroup_fj_stress_net_prio_1_200_each.sh | 2 +- ...rs_cgroup_fj_stress_net_prio_1_200_none.sh | 2 +- ...ers_cgroup_fj_stress_net_prio_1_200_one.sh | 2 +- ...rs_cgroup_fj_stress_net_prio_200_1_each.sh | 2 +- ...rs_cgroup_fj_stress_net_prio_200_1_none.sh | 2 +- ...ers_cgroup_fj_stress_net_prio_200_1_one.sh | 2 +- ...lers_cgroup_fj_stress_net_prio_2_2_each.sh | 2 +- ...lers_cgroup_fj_stress_net_prio_2_2_none.sh | 2 +- ...llers_cgroup_fj_stress_net_prio_2_2_one.sh | 2 +- ...lers_cgroup_fj_stress_net_prio_2_9_each.sh | 2 +- ...lers_cgroup_fj_stress_net_prio_2_9_none.sh | 2 +- ...llers_cgroup_fj_stress_net_prio_2_9_one.sh | 2 +- ...lers_cgroup_fj_stress_net_prio_3_3_each.sh | 2 +- ...lers_cgroup_fj_stress_net_prio_3_3_none.sh | 2 +- ...llers_cgroup_fj_stress_net_prio_3_3_one.sh | 2 +- ...lers_cgroup_fj_stress_net_prio_4_4_each.sh | 2 +- ...lers_cgroup_fj_stress_net_prio_4_4_none.sh | 2 +- ...llers_cgroup_fj_stress_net_prio_4_4_one.sh | 2 +- ...s_cgroup_fj_stress_perf_event_10_3_each.sh | 2 +- ...s_cgroup_fj_stress_perf_event_10_3_none.sh | 2 +- ...rs_cgroup_fj_stress_perf_event_10_3_one.sh | 2 +- ..._cgroup_fj_stress_perf_event_1_200_each.sh | 2 +- ..._cgroup_fj_stress_perf_event_1_200_none.sh | 2 +- ...s_cgroup_fj_stress_perf_event_1_200_one.sh | 2 +- ..._cgroup_fj_stress_perf_event_200_1_each.sh | 2 +- ..._cgroup_fj_stress_perf_event_200_1_none.sh | 2 +- ...s_cgroup_fj_stress_perf_event_200_1_one.sh | 2 +- ...rs_cgroup_fj_stress_perf_event_2_2_each.sh | 2 +- ...rs_cgroup_fj_stress_perf_event_2_2_none.sh | 2 +- ...ers_cgroup_fj_stress_perf_event_2_2_one.sh | 2 +- ...rs_cgroup_fj_stress_perf_event_2_9_each.sh | 2 +- ...rs_cgroup_fj_stress_perf_event_2_9_none.sh | 2 +- ...ers_cgroup_fj_stress_perf_event_2_9_one.sh | 2 +- ...rs_cgroup_fj_stress_perf_event_3_3_each.sh | 2 +- ...rs_cgroup_fj_stress_perf_event_3_3_none.sh | 2 +- ...ers_cgroup_fj_stress_perf_event_3_3_one.sh | 2 +- ...rs_cgroup_fj_stress_perf_event_4_4_each.sh | 2 +- ...rs_cgroup_fj_stress_perf_event_4_4_none.sh | 2 +- ...ers_cgroup_fj_stress_perf_event_4_4_one.sh | 2 +- .../oe_test_ltp_controllers_cgroup_xattr.sh | 2 +- .../oe_test_ltp_controllers_controllers.sh | 2 +- .../oe_test_ltp_controllers_cpuacct_100_1.sh | 2 +- ...oe_test_ltp_controllers_cpuacct_100_100.sh | 2 +- .../oe_test_ltp_controllers_cpuacct_10_10.sh | 2 +- .../oe_test_ltp_controllers_cpuacct_1_1.sh | 2 +- .../oe_test_ltp_controllers_cpuacct_1_10.sh | 2 +- .../oe_test_ltp_controllers_cpuacct_1_100.sh | 2 +- ...oe_test_ltp_controllers_cpuset_base_ops.sh | 2 +- ...e_test_ltp_controllers_cpuset_exclusive.sh | 2 +- ...e_test_ltp_controllers_cpuset_hierarchy.sh | 2 +- .../oe_test_ltp_controllers_cpuset_hotplug.sh | 2 +- .../oe_test_ltp_controllers_cpuset_inherit.sh | 2 +- ...est_ltp_controllers_cpuset_load_balance.sh | 2 +- .../oe_test_ltp_controllers_cpuset_memory.sh | 2 +- ..._ltp_controllers_cpuset_memory_pressure.sh | 2 +- ...st_ltp_controllers_cpuset_memory_spread.sh | 2 +- ..._ltp_controllers_cpuset_regression_test.sh | 2 +- ...st_ltp_controllers_cpuset_sched_domains.sh | 2 +- .../oe_test_ltp_controllers_cpuset_syscall.sh | 2 +- .../oe_test_ltp_controllers_io_control01.sh | 2 +- .../oe_test_ltp_controllers_memcg_control.sh | 2 +- .../oe_test_ltp_controllers_memcg_failcnt.sh | 2 +- ..._test_ltp_controllers_memcg_force_empty.sh | 2 +- ...st_ltp_controllers_memcg_limit_in_bytes.sh | 2 +- ...tp_controllers_memcg_max_usage_in_bytes.sh | 2 +- ..._controllers_memcg_memsw_limit_in_bytes.sh | 2 +- ...trollers_memcg_move_charge_at_immigrate.sh | 2 +- ...e_test_ltp_controllers_memcg_regression.sh | 2 +- .../oe_test_ltp_controllers_memcg_stat.sh | 2 +- .../oe_test_ltp_controllers_memcg_stat_rss.sh | 2 +- .../oe_test_ltp_controllers_memcg_stress.sh | 2 +- ...t_ltp_controllers_memcg_subgroup_charge.sh | 2 +- .../oe_test_ltp_controllers_memcg_test_3.sh | 2 +- ...st_ltp_controllers_memcg_usage_in_bytes.sh | 2 +- ...est_ltp_controllers_memcg_use_hierarchy.sh | 2 +- .../oe_test_ltp_controllers_memcontrol01.sh | 2 +- .../oe_test_ltp_controllers_memcontrol02.sh | 2 +- .../oe_test_ltp_controllers_memcontrol03.sh | 2 +- .../oe_test_ltp_controllers_memcontrol04.sh | 2 +- .../oe_test_ltp_controllers_pids_1_1.sh | 2 +- .../oe_test_ltp_controllers_pids_1_10.sh | 2 +- .../oe_test_ltp_controllers_pids_1_100.sh | 2 +- .../oe_test_ltp_controllers_pids_1_2.sh | 2 +- .../oe_test_ltp_controllers_pids_1_50.sh | 2 +- .../oe_test_ltp_controllers_pids_2_1.sh | 2 +- .../oe_test_ltp_controllers_pids_2_10.sh | 2 +- .../oe_test_ltp_controllers_pids_2_100.sh | 2 +- .../oe_test_ltp_controllers_pids_2_2.sh | 2 +- .../oe_test_ltp_controllers_pids_2_50.sh | 2 +- .../oe_test_ltp_controllers_pids_3_0.sh | 2 +- .../oe_test_ltp_controllers_pids_3_1.sh | 2 +- .../oe_test_ltp_controllers_pids_3_10.sh | 2 +- .../oe_test_ltp_controllers_pids_3_100.sh | 2 +- .../oe_test_ltp_controllers_pids_3_50.sh | 2 +- .../oe_test_ltp_controllers_pids_4_1.sh | 2 +- .../oe_test_ltp_controllers_pids_4_10.sh | 2 +- .../oe_test_ltp_controllers_pids_4_100.sh | 2 +- .../oe_test_ltp_controllers_pids_4_2.sh | 2 +- .../oe_test_ltp_controllers_pids_4_50.sh | 2 +- .../oe_test_ltp_controllers_pids_5_1.sh | 2 +- .../oe_test_ltp_controllers_pids_6_1.sh | 2 +- .../oe_test_ltp_controllers_pids_6_10.sh | 2 +- .../oe_test_ltp_controllers_pids_6_100.sh | 2 +- .../oe_test_ltp_controllers_pids_6_2.sh | 2 +- .../oe_test_ltp_controllers_pids_6_50.sh | 2 +- .../oe_test_ltp_controllers_pids_7_10.sh | 2 +- .../oe_test_ltp_controllers_pids_7_100.sh | 2 +- .../oe_test_ltp_controllers_pids_7_1000.sh | 2 +- .../oe_test_ltp_controllers_pids_7_50.sh | 2 +- .../oe_test_ltp_controllers_pids_7_500.sh | 2 +- .../oe_test_ltp_controllers_pids_8_10.sh | 2 +- .../oe_test_ltp_controllers_pids_8_100.sh | 2 +- .../oe_test_ltp_controllers_pids_8_2.sh | 2 +- .../oe_test_ltp_controllers_pids_8_50.sh | 2 +- .../oe_test_ltp_controllers_pids_9_10.sh | 2 +- .../oe_test_ltp_controllers_pids_9_100.sh | 2 +- .../oe_test_ltp_controllers_pids_9_2.sh | 2 +- .../oe_test_ltp_controllers_pids_9_50.sh | 2 +- .../oe_test_ltp_cpuhotplug_cpuhotplug02.sh | 2 +- .../oe_test_ltp_cpuhotplug_cpuhotplug03.sh | 2 +- .../oe_test_ltp_cpuhotplug_cpuhotplug04.sh | 2 +- .../oe_test_ltp_cpuhotplug_cpuhotplug05.sh | 2 +- .../oe_test_ltp_cpuhotplug_cpuhotplug06.sh | 2 +- .../oe_test_ltp_cpuhotplug_cpuhotplug07.sh | 2 +- .../oe_test_ltp_crashme_crash01.sh | 64 +++ .../oe_test_ltp_crashme_crash02.sh | 64 +++ .../ltp_crashme/oe_test_ltp_crashme_f00f.sh | 64 +++ .../ltp_crypto/oe_test_ltp_crypto_af_alg01.sh | 2 +- .../ltp_crypto/oe_test_ltp_crypto_af_alg02.sh | 2 +- .../ltp_crypto/oe_test_ltp_crypto_af_alg03.sh | 2 +- .../ltp_crypto/oe_test_ltp_crypto_af_alg04.sh | 2 +- .../ltp_crypto/oe_test_ltp_crypto_af_alg05.sh | 2 +- .../ltp_crypto/oe_test_ltp_crypto_af_alg06.sh | 2 +- .../ltp_crypto/oe_test_ltp_crypto_af_alg07.sh | 2 +- .../oe_test_ltp_crypto_crypto_user01.sh | 2 +- .../oe_test_ltp_crypto_crypto_user02.sh | 2 +- .../oe_test_ltp_crypto_pcrypt_aead01.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio01.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio02.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio03.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio04.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio05.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio06.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio07.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio08.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio09.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio10.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio11.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio12.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio13.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio14.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio15.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio16.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio17.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio18.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio19.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio20.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio21.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio22.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio23.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio24.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio25.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio26.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio27.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio28.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio29.sh | 2 +- .../ltp-test/ltp_dio/oe_test_ltp_dio_dio30.sh | 2 +- ..._dma_thread_diotest_dma_thread_diotest1.sh | 64 +++ ..._dma_thread_diotest_dma_thread_diotest2.sh | 64 +++ ..._dma_thread_diotest_dma_thread_diotest3.sh | 64 +++ ..._dma_thread_diotest_dma_thread_diotest4.sh | 64 +++ ..._dma_thread_diotest_dma_thread_diotest5.sh | 64 +++ ..._dma_thread_diotest_dma_thread_diotest6.sh | 64 +++ ..._dma_thread_diotest_dma_thread_diotest7.sh | 64 +++ ...est_ltp_fcntl-locktests_FCNTL_LOCKTESTS.sh | 2 +- .../oe_test_ltp_filecaps_Filecaps.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_binfmt_misc01.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_binfmt_misc02.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_fs_di.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_fs_fill.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_fs_inod01.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_fs_racer.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_ftest01.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_ftest02.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_ftest03.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_ftest04.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_ftest05.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_ftest06.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_ftest07.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_ftest08.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf01.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf02.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf03.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf04.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf05.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf06.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf07.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf08.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf09.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf10.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf11.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf12.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf13.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf14.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf15.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf16.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf17.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf18.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf19.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf20.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf21.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf22.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf23.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf24.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf25.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf26.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf27.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf28.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf29.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_gf30.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_inode01.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_inode02.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_iogen01.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_isofs.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_lftest01.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_linker01.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_openfile01.sh | 2 +- .../ltp-test/ltp_fs/oe_test_ltp_fs_proc01.sh | 2 +- .../oe_test_ltp_fs_quota_remount_test01.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_read_all_dev.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_read_all_proc.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_read_all_sys.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_rwtest01.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_rwtest02.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_rwtest03.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_rwtest04.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_rwtest05.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_squashfs01.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_stream01.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_stream02.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_stream03.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_stream04.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_stream05.sh | 2 +- .../ltp_fs/oe_test_ltp_fs_writetest01.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind01_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind02_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind03_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind04_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind05_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind06_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind07-2_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind07_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind08_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind09_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind10_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind11_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind12_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind13_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind14_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind15_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind16_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind17_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind18_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind19_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind20_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind21_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind22_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind23_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind24_sh.sh | 2 +- ...e_test_ltp_fs_bind_fs_bind_cloneNS01_sh.sh | 2 +- ...e_test_ltp_fs_bind_fs_bind_cloneNS02_sh.sh | 2 +- ...e_test_ltp_fs_bind_fs_bind_cloneNS03_sh.sh | 2 +- ...e_test_ltp_fs_bind_fs_bind_cloneNS04_sh.sh | 2 +- ...e_test_ltp_fs_bind_fs_bind_cloneNS05_sh.sh | 2 +- ...e_test_ltp_fs_bind_fs_bind_cloneNS06_sh.sh | 2 +- ...e_test_ltp_fs_bind_fs_bind_cloneNS07_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move01_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move02_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move03_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move04_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move05_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move06_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move07_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move08_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move09_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move10_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move11_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move12_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move13_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move14_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move15_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move16_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move17_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move18_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move19_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move20_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move21_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_move22_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind01_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind02_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind03_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind04_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind05_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind06_sh.sh | 2 +- ...e_test_ltp_fs_bind_fs_bind_rbind07-2_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind07_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind08_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind09_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind10_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind11_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind12_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind13_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind14_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind15_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind16_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind17_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind18_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind19_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind20_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind21_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind22_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind23_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind24_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind25_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind26_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind27_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind28_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind29_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind30_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind31_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind32_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind33_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind34_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind35_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind36_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind37_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind38_sh.sh | 2 +- .../oe_test_ltp_fs_bind_fs_bind_rbind39_sh.sh | 2 +- ..._test_ltp_fs_bind_fs_bind_regression_sh.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms01.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms02.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms03.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms04.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms05.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms06.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms07.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms08.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms09.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms10.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms11.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms12.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms13.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms14.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms15.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms16.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms17.sh | 2 +- .../oe_test_ltp_fs_perms_simple_fs_perms18.sh | 2 +- .../oe_test_ltp_fs_readonly_test_robind01.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind02.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind03.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind04.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind05.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind06.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind07.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind08.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind09.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind10.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind11.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind12.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind13.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind14.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind15.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind16.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind17.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind18.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind19.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind20.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind21.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind22.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind23.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind24.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind25.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind26.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind27.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind28.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind29.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind30.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind31.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind32.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind33.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind34.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind35.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind36.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind37.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind38.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind39.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind40.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind41.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind42.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind43.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind44.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind45.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind46.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind47.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind48.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind49.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind50.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind51.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind52.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind53.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind54.sh | 64 +++ .../oe_test_ltp_fs_readonly_test_robind55.sh | 64 +++ .../oe_test_ltp_hugetlb_hugefallocate01.sh | 2 +- .../oe_test_ltp_hugetlb_hugefallocate02.sh | 2 +- .../oe_test_ltp_hugetlb_hugefork01.sh | 2 +- .../oe_test_ltp_hugetlb_hugefork02.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap01.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap02.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap04.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap05.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap05_1.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap05_2.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap05_3.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap06.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap07.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap08.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap09.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap10.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap11.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap12.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap13.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap14.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap15.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap16.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap17.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap18.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap19.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap20.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap21.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap22.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap23.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap24.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap25.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap26.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap27.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap28.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap29.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap30.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap31.sh | 2 +- .../oe_test_ltp_hugetlb_hugemmap32.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmat01.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmat02.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmat03.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmat04.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmat05.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmctl01.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmctl02.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmctl03.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmdt01.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmget01.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmget02.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmget03.sh | 2 +- .../oe_test_ltp_hugetlb_hugeshmget05.sh | 2 +- ...est_ltp_hyperthreading_smt_smp_affinity.sh | 2 +- ...test_ltp_hyperthreading_smt_smp_enabled.sh | 2 +- .../ltp_ima/oe_test_ltp_ima_evm_overlay.sh | 64 +++ .../oe_test_ltp_ima_ima_conditionals.sh | 64 +++ .../ltp_ima/oe_test_ltp_ima_ima_kexec.sh | 64 +++ .../ltp_ima/oe_test_ltp_ima_ima_keys.sh | 64 +++ .../oe_test_ltp_ima_ima_measurements.sh | 64 +++ .../ltp_ima/oe_test_ltp_ima_ima_policy.sh | 64 +++ .../ltp_ima/oe_test_ltp_ima_ima_selinux.sh | 64 +++ .../ltp_ima/oe_test_ltp_ima_ima_tpm.sh | 64 +++ .../ltp_ima/oe_test_ltp_ima_ima_violations.sh | 64 +++ .../ltp_input/oe_test_ltp_input_input01.sh | 2 +- .../ltp_input/oe_test_ltp_input_input02.sh | 2 +- .../ltp_input/oe_test_ltp_input_input03.sh | 2 +- .../ltp_input/oe_test_ltp_input_input04.sh | 2 +- .../ltp_input/oe_test_ltp_input_input05.sh | 2 +- .../ltp_input/oe_test_ltp_input_input06.sh | 2 +- .../ltp-test/ltp_io/oe_test_ltp_io_aio01.sh | 2 +- .../ltp-test/ltp_io/oe_test_ltp_io_aio02.sh | 2 +- .../ltp_ipc/oe_test_ltp_ipc_pipeio_1.sh | 2 +- .../ltp_ipc/oe_test_ltp_ipc_pipeio_3.sh | 2 +- .../ltp_ipc/oe_test_ltp_ipc_pipeio_4.sh | 2 +- .../ltp_ipc/oe_test_ltp_ipc_pipeio_5.sh | 2 +- .../ltp_ipc/oe_test_ltp_ipc_pipeio_6.sh | 2 +- .../ltp_ipc/oe_test_ltp_ipc_pipeio_8.sh | 2 +- .../ltp_irq/oe_test_ltp_irq_irqbalance01.sh | 2 +- .../oe_test_ltp_kernel_misc_aslr01.sh | 64 +++ .../oe_test_ltp_kernel_misc_block_dev.sh | 2 +- .../oe_test_ltp_kernel_misc_cn_pec_sh.sh | 2 +- .../oe_test_ltp_kernel_misc_cpufreq_boost.sh | 2 +- .../oe_test_ltp_kernel_misc_fw_load.sh | 2 +- .../oe_test_ltp_kernel_misc_kmsg01.sh | 2 +- .../oe_test_ltp_kernel_misc_lock_torture.sh | 2 +- .../oe_test_ltp_kernel_misc_ltp_acpi.sh | 2 +- .../oe_test_ltp_kernel_misc_rcu_torture.sh | 2 +- .../oe_test_ltp_kernel_misc_rtc01.sh | 2 +- .../oe_test_ltp_kernel_misc_rtc02.sh | 2 +- .../oe_test_ltp_kernel_misc_tbio.sh | 2 +- .../oe_test_ltp_kernel_misc_tpci.sh | 2 +- .../oe_test_ltp_kernel_misc_uaccess.sh | 2 +- ...oe_test_ltp_kernel_misc_umip_basic_test.sh | 2 +- .../oe_test_ltp_kernel_misc_zram01.sh | 2 +- .../oe_test_ltp_kernel_misc_zram02.sh | 2 +- .../oe_test_ltp_kernel_misc_zram03.sh | 2 +- .../oe_test_ltp_kvm_kvm_pagefault01.sh | 64 +++ .../ltp_kvm/oe_test_ltp_kvm_kvm_svm01.sh | 64 +++ .../ltp_kvm/oe_test_ltp_kvm_kvm_svm02.sh | 64 +++ .../ltp_kvm/oe_test_ltp_kvm_kvm_svm03.sh | 64 +++ .../ltp_kvm/oe_test_ltp_kvm_kvm_svm04.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1000.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1001.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1002.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1003.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1004.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1005.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1006.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1007.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1008.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1009.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1010.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1011.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1012.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1013.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1014.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1015.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1016.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1017.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1018.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1019.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1020.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1021.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1022.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1023.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1024.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1025.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1026.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1027.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1028.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1029.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1030.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1031.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1032.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1033.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1034.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1035.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1036.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1037.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1038.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1039.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1040.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1041.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1042.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1043.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1044.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1045.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1046.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1047.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1048.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1049.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1050.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1051.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1052.sh | 64 +++ .../oe_test_ltp_ltp-aio-stress_ADS1053.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD001.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD002.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD003.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD004.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD005.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD006.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD007.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD008.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD009.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD010.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD011.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD012.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD013.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD014.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD015.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD016.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD017.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD018.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD019.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD020.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD021.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD022.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD023.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD024.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD025.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD026.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD027.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD028.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD029.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD030.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD031.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD032.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD033.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD034.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD035.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD036.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD037.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD038.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD039.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD040.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD041.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD042.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD043.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD044.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD045.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD046.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD047.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD048.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD049.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD050.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD051.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD052.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD053.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD054.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD055.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD056.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD057.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD058.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD059.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD060.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD061.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD062.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD063.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD064.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD065.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD066.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD067.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD068.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD069.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD070.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD071.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD072.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD073.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD074.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD075.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD076.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD077.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD078.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD079.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD080.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD081.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD082.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD083.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD084.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD085.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD086.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD087.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD088.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD089.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD090.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD091.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD092.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD093.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD094.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD095.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD096.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD097.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD098.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD099.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD100.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD101.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD102.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD103.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD104.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD105.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD106.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD107.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD108.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD109.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD110.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD111.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD112.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD113.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD114.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD115.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD116.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD117.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD118.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD119.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD120.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD121.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD122.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD123.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD124.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD125.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD126.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD127.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD128.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD129.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD130.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD131.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD132.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD133.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD134.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD135.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD136.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD137.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD138.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD139.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part1_AD140.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP000.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP001.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP002.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP003.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP004.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP005.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP006.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP007.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP008.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP009.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP010.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP011.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP012.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP013.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP014.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP015.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP016.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP017.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP018.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP019.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP020.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP021.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP022.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP023.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP024.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP025.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP026.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP027.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP028.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP029.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP030.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP031.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP032.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP033.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP034.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP035.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP036.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP037.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP038.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP039.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP040.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP041.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP042.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP043.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP044.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP045.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP046.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP047.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP048.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP049.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP050.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP051.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP052.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP053.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP054.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP055.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP056.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP057.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP058.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP059.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP060.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP061.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP062.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP063.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP064.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP065.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP066.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP067.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP068.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP069.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP070.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP071.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP072.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP073.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP074.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP075.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP076.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP077.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP078.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP079.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP080.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP081.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part2_ADSP082.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx01.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx02.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx03.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx04.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx05.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx06.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx07.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx08.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx09.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx10.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx12.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx13.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx14.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx15.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx16.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx17.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx18.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx19.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx20.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx21.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part3_fsx22.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD000.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD001.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD002.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD003.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD004.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD005.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD006.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD007.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD008.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_AD009.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI000.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI001.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI002.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI003.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI004.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI005.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI006.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI007.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI008.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_ADI009.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI000.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI001.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI002.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI003.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI004.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI005.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI006.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI007.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI008.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DI009.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO00.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO01.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO02.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO03.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO04.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO05.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO06.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO07.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO08.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIO09.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIT000.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIT001.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DIT002.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DOR000.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DOR001.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DOR002.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DOR003.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS000.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS001.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS002.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS003.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS004.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS005.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS006.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS007.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS008.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_DS009.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_aio01.sh | 64 +++ .../oe_test_ltp_ltp-aiodio_part4_aio02.sh | 64 +++ .../ltp_math/oe_test_ltp_math_abs01.sh | 2 +- .../ltp_math/oe_test_ltp_math_atof01.sh | 2 +- .../ltp_math/oe_test_ltp_math_float_bessel.sh | 2 +- .../oe_test_ltp_math_float_exp_log.sh | 2 +- .../ltp_math/oe_test_ltp_math_float_iperb.sh | 2 +- .../ltp_math/oe_test_ltp_math_float_power.sh | 2 +- .../ltp_math/oe_test_ltp_math_float_trigo.sh | 2 +- .../ltp_math/oe_test_ltp_math_fptest01.sh | 2 +- .../ltp_math/oe_test_ltp_math_fptest02.sh | 2 +- .../ltp_math/oe_test_ltp_math_nextafter01.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_cpuset01.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_data_space.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_kallsyms.sh | 64 +++ .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm01.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm01_1.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm02.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm02_1.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm03.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm03_1.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm04.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm04_1.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm05.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm06.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_1.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_2.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_ksm07.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mallocstress01.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_max_map_count.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_mem02.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_min_free_kbytes.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_mm01.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_mm02.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_mmap10.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmap10_1.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmap10_2.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmap10_3.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmap10_4.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress01.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress02.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress03.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress04.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress05.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress06.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress07.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress08.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress09.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mmapstress10.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_mtest01.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mtest01w.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_mtest05.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_mtest06.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mtest06_2.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_mtest06_3.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_oom01.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_oom02.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_oom03.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_oom04.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_oom05.sh | 2 +- .../oe_test_ltp_mm_overcommit_memory01.sh | 2 +- .../oe_test_ltp_mm_overcommit_memory02.sh | 2 +- .../oe_test_ltp_mm_overcommit_memory03.sh | 2 +- .../oe_test_ltp_mm_overcommit_memory04.sh | 2 +- .../oe_test_ltp_mm_overcommit_memory05.sh | 2 +- .../oe_test_ltp_mm_overcommit_memory06.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_page01.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_page02.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_shm_test01.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_shmt02.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_shmt03.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_shmt04.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_shmt05.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_shmt06.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_shmt07.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_shmt08.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_shmt09.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_shmt10.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_stack_space.sh | 2 +- .../ltp_mm/oe_test_ltp_mm_swapping01.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_thp01.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_thp02.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_thp03.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_thp04.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_vma01.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_vma02.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_vma03.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_vma04.sh | 2 +- .../ltp-test/ltp_mm/oe_test_ltp_mm_vma05.sh | 2 +- .../oe_test_ltp_net_features_bbr01.sh | 64 +++ .../oe_test_ltp_net_features_bbr01_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_bbr02.sh | 64 +++ .../oe_test_ltp_net_features_bbr02_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_bind_noport01.sh | 64 +++ ...est_ltp_net_features_bind_noport01_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_busy_poll01.sh | 64 +++ ..._test_ltp_net_features_busy_poll01_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_busy_poll02.sh | 64 +++ ..._test_ltp_net_features_busy_poll02_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_busy_poll03.sh | 64 +++ ..._test_ltp_net_features_busy_poll03_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_dccp01.sh | 64 +++ .../oe_test_ltp_net_features_dccp01_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_dctcp_ipv4_01.sh | 64 +++ .../oe_test_ltp_net_features_dctcp_ipv6_01.sh | 64 +++ .../oe_test_ltp_net_features_fanout01.sh | 64 +++ .../oe_test_ltp_net_features_fou01.sh | 64 +++ .../oe_test_ltp_net_features_fou01_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_geneve01.sh | 64 +++ .../oe_test_ltp_net_features_geneve01_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_geneve02.sh | 64 +++ .../oe_test_ltp_net_features_geneve02_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_gre_ipv4_01.sh | 64 +++ .../oe_test_ltp_net_features_gre_ipv4_02.sh | 64 +++ .../oe_test_ltp_net_features_gre_ipv6_01.sh | 64 +++ .../oe_test_ltp_net_features_gre_ipv6_02.sh | 64 +++ .../oe_test_ltp_net_features_gue01.sh | 64 +++ .../oe_test_ltp_net_features_gue01_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_ipvlan01.sh | 64 +++ .../oe_test_ltp_net_features_macsec01.sh | 64 +++ .../oe_test_ltp_net_features_macsec02.sh | 64 +++ .../oe_test_ltp_net_features_macsec03.sh | 64 +++ .../oe_test_ltp_net_features_macvlan01.sh | 64 +++ .../oe_test_ltp_net_features_macvtap01.sh | 64 +++ .../oe_test_ltp_net_features_mpls01.sh | 64 +++ .../oe_test_ltp_net_features_mpls02.sh | 64 +++ .../oe_test_ltp_net_features_mpls02_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_mpls03.sh | 64 +++ .../oe_test_ltp_net_features_mpls03_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_mpls04.sh | 64 +++ .../oe_test_ltp_net_features_sctp01.sh | 64 +++ .../oe_test_ltp_net_features_sctp01_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_sit01.sh | 64 +++ .../oe_test_ltp_net_features_tcp_fastopen.sh | 64 +++ .../oe_test_ltp_net_features_tcp_fastopen6.sh | 64 +++ .../oe_test_ltp_net_features_vlan01.sh | 64 +++ .../oe_test_ltp_net_features_vlan02.sh | 64 +++ .../oe_test_ltp_net_features_vlan03.sh | 64 +++ .../oe_test_ltp_net_features_vxlan01.sh | 64 +++ .../oe_test_ltp_net_features_vxlan02.sh | 64 +++ .../oe_test_ltp_net_features_vxlan02_ipv6.sh | 64 +++ ...st_ltp_net_features_vxlan_ipv6_multi_03.sh | 64 +++ ...test_ltp_net_features_vxlan_ipv6_uni_03.sh | 64 +++ ...test_ltp_net_features_vxlan_ipv6_uni_04.sh | 64 +++ ...oe_test_ltp_net_features_vxlan_multi_03.sh | 64 +++ .../oe_test_ltp_net_features_vxlan_uni_03.sh | 64 +++ .../oe_test_ltp_net_features_vxlan_uni_04.sh | 64 +++ .../oe_test_ltp_net_features_wireguard01.sh | 64 +++ ..._test_ltp_net_features_wireguard01_ipv6.sh | 64 +++ .../oe_test_ltp_net_features_wireguard02.sh | 64 +++ ..._test_ltp_net_features_wireguard02_ipv6.sh | 64 +++ .../oe_test_ltp_net_ipv6_dhcpd6.sh | 64 +++ .../oe_test_ltp_net_ipv6_dnsmasq6.sh | 64 +++ .../oe_test_ltp_net_ipv6_ip6tables.sh | 64 +++ .../oe_test_ltp_net_ipv6_ipneigh6_ip.sh | 64 +++ .../ltp_net_ipv6/oe_test_ltp_net_ipv6_nft6.sh | 64 +++ .../oe_test_ltp_net_ipv6_ping601.sh | 64 +++ .../oe_test_ltp_net_ipv6_ping602.sh | 64 +++ .../oe_test_ltp_net_ipv6_sendfile601.sh | 64 +++ .../oe_test_ltp_net_ipv6_tcpdump601.sh | 64 +++ .../oe_test_ltp_net_ipv6_tracepath601.sh | 64 +++ .../oe_test_ltp_net_ipv6_traceroute601.sh | 64 +++ .../oe_test_ltp_net_ipv6_lib_asapi_01.sh | 2 +- .../oe_test_ltp_net_ipv6_lib_asapi_02.sh | 2 +- .../oe_test_ltp_net_ipv6_lib_asapi_03.sh | 2 +- ...oe_test_ltp_net_ipv6_lib_getaddrinfo_01.sh | 2 +- .../oe_test_ltp_net_ipv6_lib_in6_01.sh | 2 +- .../oe_test_ltp_net_ipv6_lib_in6_02.sh | 2 +- .../oe_test_ltp_net_multicast_mc_cmds.sh | 64 +++ .../oe_test_ltp_net_multicast_mc_commo.sh | 64 +++ .../oe_test_ltp_net_multicast_mc_member.sh | 64 +++ .../oe_test_ltp_net_multicast_mc_opts.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_fsx_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs01_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs02_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs03_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs04_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs05_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs06_v30_v40_ip4.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs06_v4x_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs06_vall_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs07_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs08_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfs09_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfslock01_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v30_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v30_ip4u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v30_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v30_ip6u.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v40_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v40_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v41_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v41_ip6t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v42_ip4t.sh | 64 +++ .../oe_test_ltp_net_nfs_nfsstat01_v42_ip6t.sh | 64 +++ .../oe_test_ltp_net_rpc_tests_rpc01.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_auth_destroy.sh | 64 +++ ...t_ltp_net_rpc_tests_rpc_authnone_create.sh | 64 +++ ...t_ltp_net_rpc_tests_rpc_authunix_create.sh | 64 +++ ...t_rpc_tests_rpc_authunix_create_default.sh | 64 +++ .../oe_test_ltp_net_rpc_tests_rpc_callrpc.sh | 64 +++ ...st_ltp_net_rpc_tests_rpc_clnt_broadcast.sh | 64 +++ ...oe_test_ltp_net_rpc_tests_rpc_clnt_call.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_clnt_control.sh | 64 +++ ..._test_ltp_net_rpc_tests_rpc_clnt_create.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_clnt_destroy.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_clnt_freeres.sh | 64 +++ ..._test_ltp_net_rpc_tests_rpc_clnt_geterr.sh | 64 +++ ...ltp_net_rpc_tests_rpc_clnt_pcreateerror.sh | 64 +++ ..._test_ltp_net_rpc_tests_rpc_clnt_perrno.sh | 64 +++ ..._test_ltp_net_rpc_tests_rpc_clnt_perror.sh | 64 +++ ...tp_net_rpc_tests_rpc_clnt_spcreateerror.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_clnt_sperrno.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_clnt_sperror.sh | 64 +++ ...st_ltp_net_rpc_tests_rpc_clntraw_create.sh | 64 +++ ...st_ltp_net_rpc_tests_rpc_clnttcp_create.sh | 64 +++ ...ltp_net_rpc_tests_rpc_clntudp_bufcreate.sh | 64 +++ ...st_ltp_net_rpc_tests_rpc_clntudp_create.sh | 64 +++ ...est_ltp_net_rpc_tests_rpc_get_myaddress.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_pmap_getmaps.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_pmap_getport.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_pmap_rmtcall.sh | 64 +++ .../oe_test_ltp_net_rpc_tests_rpc_pmap_set.sh | 64 +++ ...e_test_ltp_net_rpc_tests_rpc_pmap_unset.sh | 64 +++ ..._test_ltp_net_rpc_tests_rpc_registerrpc.sh | 64 +++ ..._test_ltp_net_rpc_tests_rpc_svc_destroy.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_svc_freeargs.sh | 64 +++ ..._test_ltp_net_rpc_tests_rpc_svc_getargs.sh | 64 +++ ...est_ltp_net_rpc_tests_rpc_svc_getcaller.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_svc_register.sh | 64 +++ ...est_ltp_net_rpc_tests_rpc_svc_sendreply.sh | 64 +++ ...st_ltp_net_rpc_tests_rpc_svc_unregister.sh | 64 +++ ..._test_ltp_net_rpc_tests_rpc_svcerr_auth.sh | 64 +++ ...est_ltp_net_rpc_tests_rpc_svcerr_noproc.sh | 64 +++ ...est_ltp_net_rpc_tests_rpc_svcerr_noprog.sh | 64 +++ ...t_ltp_net_rpc_tests_rpc_svcerr_progvers.sh | 64 +++ ..._ltp_net_rpc_tests_rpc_svcerr_systemerr.sh | 64 +++ ...t_ltp_net_rpc_tests_rpc_svcerr_weakauth.sh | 64 +++ ...test_ltp_net_rpc_tests_rpc_svcfd_create.sh | 64 +++ ...est_ltp_net_rpc_tests_rpc_svcraw_create.sh | 64 +++ ...est_ltp_net_rpc_tests_rpc_svctcp_create.sh | 64 +++ ..._ltp_net_rpc_tests_rpc_svcudp_bufcreate.sh | 64 +++ ...est_ltp_net_rpc_tests_rpc_svcudp_create.sh | 64 +++ ...est_ltp_net_rpc_tests_rpc_xprt_register.sh | 64 +++ ...t_ltp_net_rpc_tests_rpc_xprt_unregister.sh | 64 +++ .../oe_test_ltp_net_rpc_tests_rpcinfo.sh | 64 +++ ...t_ltp_net_sctp_test_1_to_1_accept_close.sh | 64 +++ .../oe_test_ltp_net_sctp_test_1_to_1_addrs.sh | 64 +++ ...e_test_ltp_net_sctp_test_1_to_1_connect.sh | 64 +++ ..._test_ltp_net_sctp_test_1_to_1_connectx.sh | 64 +++ ...oe_test_ltp_net_sctp_test_1_to_1_events.sh | 64 +++ ...tp_net_sctp_test_1_to_1_initmsg_connect.sh | 64 +++ ..._test_ltp_net_sctp_test_1_to_1_nonblock.sh | 64 +++ ..._test_ltp_net_sctp_test_1_to_1_recvfrom.sh | 64 +++ ...e_test_ltp_net_sctp_test_1_to_1_recvmsg.sh | 64 +++ ...e_test_ltp_net_sctp_test_1_to_1_rtoinfo.sh | 64 +++ .../oe_test_ltp_net_sctp_test_1_to_1_send.sh | 64 +++ ...e_test_ltp_net_sctp_test_1_to_1_sendmsg.sh | 64 +++ ...oe_test_ltp_net_sctp_test_1_to_1_sendto.sh | 64 +++ ..._test_ltp_net_sctp_test_1_to_1_shutdown.sh | 64 +++ ...net_sctp_test_1_to_1_socket_bind_listen.sh | 64 +++ ...e_test_ltp_net_sctp_test_1_to_1_sockopt.sh | 64 +++ ...e_test_ltp_net_sctp_test_1_to_1_threads.sh | 64 +++ .../oe_test_ltp_net_sctp_test_assoc_abort.sh | 64 +++ ...e_test_ltp_net_sctp_test_assoc_shutdown.sh | 64 +++ .../oe_test_ltp_net_sctp_test_autoclose.sh | 64 +++ .../oe_test_ltp_net_sctp_test_basic.sh | 64 +++ .../oe_test_ltp_net_sctp_test_basic_v6.sh | 64 +++ .../oe_test_ltp_net_sctp_test_connect.sh | 64 +++ .../oe_test_ltp_net_sctp_test_connectx.sh | 64 +++ .../oe_test_ltp_net_sctp_test_fragments.sh | 64 +++ .../oe_test_ltp_net_sctp_test_fragments_v6.sh | 64 +++ .../oe_test_ltp_net_sctp_test_getname.sh | 64 +++ .../oe_test_ltp_net_sctp_test_getname_v6.sh | 64 +++ .../oe_test_ltp_net_sctp_test_inaddr_any.sh | 64 +++ ...oe_test_ltp_net_sctp_test_inaddr_any_v6.sh | 64 +++ .../oe_test_ltp_net_sctp_test_peeloff.sh | 64 +++ .../oe_test_ltp_net_sctp_test_peeloff_v6.sh | 64 +++ .../oe_test_ltp_net_sctp_test_recvmsg.sh | 64 +++ ...test_ltp_net_sctp_test_sctp_sendrecvmsg.sh | 64 +++ ...t_ltp_net_sctp_test_sctp_sendrecvmsg_v6.sh | 64 +++ .../oe_test_ltp_net_sctp_test_sockopt.sh | 64 +++ .../oe_test_ltp_net_sctp_test_sockopt_v6.sh | 64 +++ .../oe_test_ltp_net_sctp_test_tcp_style.sh | 64 +++ .../oe_test_ltp_net_sctp_test_tcp_style_v6.sh | 64 +++ .../oe_test_ltp_net_sctp_test_timetolive.sh | 64 +++ ...oe_test_ltp_net_sctp_test_timetolive_v6.sh | 64 +++ ...oe_test_ltp_net_stress_appl_dns4-stress.sh | 64 +++ ...oe_test_ltp_net_stress_appl_dns6-stress.sh | 64 +++ ...tp_net_stress_appl_ftp4-download-stress.sh | 64 +++ ..._ltp_net_stress_appl_ftp4-upload-stress.sh | 64 +++ ...tp_net_stress_appl_ftp6-download-stress.sh | 64 +++ ..._ltp_net_stress_appl_ftp6-upload-stress.sh | 64 +++ ...e_test_ltp_net_stress_appl_http4-stress.sh | 64 +++ ...e_test_ltp_net_stress_appl_http6-stress.sh | 64 +++ ...oe_test_ltp_net_stress_appl_ssh4-stress.sh | 64 +++ ...oe_test_ltp_net_stress_appl_ssh6-stress.sh | 64 +++ ...et_stress_broken_ip_broken_ip4-checksum.sh | 64 +++ ...net_stress_broken_ip_broken_ip4-dstaddr.sh | 64 +++ ...et_stress_broken_ip_broken_ip4-fragment.sh | 64 +++ ...ltp_net_stress_broken_ip_broken_ip4-ihl.sh | 64 +++ ...tp_net_stress_broken_ip_broken_ip4-plen.sh | 64 +++ ...net_stress_broken_ip_broken_ip4-protcol.sh | 64 +++ ...net_stress_broken_ip_broken_ip4-version.sh | 64 +++ ...net_stress_broken_ip_broken_ip6-dstaddr.sh | 64 +++ ...net_stress_broken_ip_broken_ip6-nexthdr.sh | 64 +++ ...tp_net_stress_broken_ip_broken_ip6-plen.sh | 64 +++ ...net_stress_broken_ip_broken_ip6-version.sh | 64 +++ ...ress_interface_if4-addr-adddel_ifconfig.sh | 64 +++ ...net_stress_interface_if4-addr-adddel_ip.sh | 64 +++ ...ss_interface_if4-addr-addlarge_ifconfig.sh | 64 +++ ...t_stress_interface_if4-addr-addlarge_ip.sh | 64 +++ ...ress_interface_if4-addr-change_ifconfig.sh | 64 +++ ...tress_interface_if4-mtu-change_ifconfig.sh | 64 +++ ..._net_stress_interface_if4-mtu-change_ip.sh | 64 +++ ...et_stress_interface_if4-route-adddel_ip.sh | 64 +++ ...stress_interface_if4-route-adddel_route.sh | 64 +++ ..._stress_interface_if4-route-addlarge_ip.sh | 64 +++ ...ress_interface_if4-route-addlarge_route.sh | 64 +++ ...et_stress_interface_if4-updown_ifconfig.sh | 64 +++ ..._ltp_net_stress_interface_if4-updown_ip.sh | 64 +++ ...ress_interface_if6-addr-adddel_ifconfig.sh | 64 +++ ...net_stress_interface_if6-addr-adddel_ip.sh | 64 +++ ...ss_interface_if6-addr-addlarge_ifconfig.sh | 64 +++ ...t_stress_interface_if6-addr-addlarge_ip.sh | 64 +++ ...tress_interface_if6-mtu-change_ifconfig.sh | 64 +++ ..._net_stress_interface_if6-mtu-change_ip.sh | 64 +++ ...et_stress_interface_if6-route-adddel_ip.sh | 64 +++ ...stress_interface_if6-route-adddel_route.sh | 64 +++ ..._stress_interface_if6-route-addlarge_ip.sh | 64 +++ ...ress_interface_if6-route-addlarge_route.sh | 64 +++ ...et_stress_interface_if6-updown_ifconfig.sh | 64 +++ ..._ltp_net_stress_interface_if6-updown_ip.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec01.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec02.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec03.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec04.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec05.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec06.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec07.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec08.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec09.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec10.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec11.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec12.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec13.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec14.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec15.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec16.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec17.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec18.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec19.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec20.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec21.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec22.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec23.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec24.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec25.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec26.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec27.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec28.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec29.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec30.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec31.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec32.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec33.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec34.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec35.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp4_ipsec36.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti01.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti02.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti04.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti05.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti06.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti07.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti08.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti09.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti10.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti11.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti12.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti13.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti14.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti15.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti16.sh | 64 +++ ...net_stress_ipsec_dccp_dccp4_ipsec_vti17.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec01.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec02.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec03.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec04.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec05.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec06.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec07.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec08.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec09.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec10.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec11.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec12.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec13.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec14.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec15.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec16.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec17.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec18.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec19.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec20.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec21.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec22.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec23.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec24.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec25.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec26.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec27.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec28.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec29.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec30.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec31.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec32.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec33.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec34.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec35.sh | 64 +++ ...ltp_net_stress_ipsec_dccp_dccp6_ipsec36.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti01.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti02.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti04.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti05.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti06.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti07.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti08.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti09.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti10.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti11.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti12.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti13.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti14.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti15.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti16.sh | 64 +++ ...net_stress_ipsec_dccp_dccp6_ipsec_vti17.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic01.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic02.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic03.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic04.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic05.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic06.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic07.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic08.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic09.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic10.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic11.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic12.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic13.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic14.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic15.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic16.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic17.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic18.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic19.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic20.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic21.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic22.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic23.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic24.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic25.sh | 64 +++ ...net_stress_ipsec_icmp_icmp4-uni-basic26.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti01.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti02.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti03.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti04.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti05.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti06.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti07.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti08.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti09.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti10.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti11.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti12.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti13.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti14.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti15.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti16.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp4-uni-vti17.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic01.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic02.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic03.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic04.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic05.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic06.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic07.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic08.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic09.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic10.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic11.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic12.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic13.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic14.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic15.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic16.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic17.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic18.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic19.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic20.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic21.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic22.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic23.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic24.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic25.sh | 64 +++ ...net_stress_ipsec_icmp_icmp6-uni-basic26.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti01.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti02.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti03.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti04.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti05.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti06.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti07.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti08.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti09.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti10.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti11.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti12.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti13.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti14.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti15.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti16.sh | 64 +++ ...p_net_stress_ipsec_icmp_icmp6-uni-vti17.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec01.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec02.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec03.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec04.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec05.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec06.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec07.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec08.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec09.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec10.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec11.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec12.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec13.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec14.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec15.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec16.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec17.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec18.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec19.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec20.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec21.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec22.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec23.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec24.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec25.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec26.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec27.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec28.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec29.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec30.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec31.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec32.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec33.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec34.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec35.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp4_ipsec36.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti01.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti02.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti04.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti05.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti06.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti07.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti08.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti09.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti10.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti11.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti12.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti13.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti14.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti15.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti16.sh | 64 +++ ...net_stress_ipsec_sctp_sctp4_ipsec_vti17.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec01.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec02.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec03.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec04.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec05.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec06.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec07.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec08.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec09.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec10.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec11.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec12.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec13.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec14.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec15.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec16.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec17.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec18.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec19.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec20.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec21.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec22.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec23.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec24.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec25.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec26.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec27.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec28.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec29.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec30.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec31.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec32.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec33.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec34.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec35.sh | 64 +++ ...ltp_net_stress_ipsec_sctp_sctp6_ipsec36.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti01.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti02.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti04.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti05.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti06.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti07.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti08.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti09.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti10.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti11.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti12.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti13.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti14.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti15.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti16.sh | 64 +++ ...net_stress_ipsec_sctp_sctp6_ipsec_vti17.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec01.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec02.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec03.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec04.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec05.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec06.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec07.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec08.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec09.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec10.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec11.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec12.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec13.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec14.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec15.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec16.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec17.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec18.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec19.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec20.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec21.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec22.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec23.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec24.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec25.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec26.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec27.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec28.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec29.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec30.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec31.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec32.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec33.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec34.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec35.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp4_ipsec36.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti01.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti02.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti04.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti05.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti06.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti07.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti08.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti09.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti10.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti11.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti12.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti13.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti14.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti15.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti16.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp4_ipsec_vti17.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec01.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec02.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec03.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec04.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec05.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec06.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec07.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec08.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec09.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec10.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec11.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec12.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec13.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec14.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec15.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec16.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec17.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec18.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec19.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec20.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec21.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec22.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec23.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec24.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec25.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec26.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec27.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec28.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec29.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec30.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec31.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec32.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec33.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec34.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec35.sh | 64 +++ ...t_ltp_net_stress_ipsec_tcp_tcp6_ipsec36.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti01.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti02.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti04.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti05.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti06.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti07.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti08.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti09.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti10.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti11.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti12.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti13.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti14.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti15.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti16.sh | 64 +++ ...p_net_stress_ipsec_tcp_tcp6_ipsec_vti17.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec01.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec02.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec03.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec04.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec05.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec06.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec07.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec08.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec09.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec10.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec11.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec12.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec13.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec14.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec15.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec16.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec17.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec18.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec19.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec20.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec21.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec22.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec23.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec24.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec25.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec26.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec27.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec28.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec29.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec30.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec31.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec32.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec33.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec34.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec35.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp4_ipsec36.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti01.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti02.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti03.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti04.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti05.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti06.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti07.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti08.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti09.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti10.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti11.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti12.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti13.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti14.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti15.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti16.sh | 64 +++ ...p_net_stress_ipsec_udp_udp4_ipsec_vti17.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec01.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec02.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec03.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec04.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec05.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec06.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec07.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec08.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec09.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec10.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec11.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec12.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec13.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec14.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec15.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec16.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec17.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec18.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec19.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec20.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec21.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec22.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec23.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec24.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec25.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec26.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec27.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec28.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec29.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec30.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec31.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec32.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec33.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec34.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec35.sh | 64 +++ ...t_ltp_net_stress_ipsec_udp_udp6_ipsec36.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti01.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti02.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti03.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti04.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti05.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti06.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti07.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti08.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti09.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti10.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti11.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti12.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti13.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti14.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti15.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti16.sh | 64 +++ ...p_net_stress_ipsec_udp_udp6_ipsec_vti17.sh | 64 +++ ..._multicast_mcast4-group-multiple-socket.sh | 64 +++ ...tress_multicast_mcast4-group-same-group.sh | 64 +++ ...ss_multicast_mcast4-group-single-socket.sh | 64 +++ ...ss_multicast_mcast4-group-source-filter.sh | 64 +++ ...tp_net_stress_multicast_mcast4-pktfld01.sh | 64 +++ ...tp_net_stress_multicast_mcast4-pktfld02.sh | 64 +++ ..._net_stress_multicast_mcast4-queryfld01.sh | 64 +++ ..._net_stress_multicast_mcast4-queryfld02.sh | 64 +++ ..._net_stress_multicast_mcast4-queryfld03.sh | 64 +++ ..._net_stress_multicast_mcast4-queryfld04.sh | 64 +++ ..._net_stress_multicast_mcast4-queryfld05.sh | 64 +++ ..._net_stress_multicast_mcast4-queryfld06.sh | 64 +++ ..._multicast_mcast6-group-multiple-socket.sh | 64 +++ ...tress_multicast_mcast6-group-same-group.sh | 64 +++ ...ss_multicast_mcast6-group-single-socket.sh | 64 +++ ...ss_multicast_mcast6-group-source-filter.sh | 64 +++ ...tp_net_stress_multicast_mcast6-pktfld01.sh | 64 +++ ...tp_net_stress_multicast_mcast6-pktfld02.sh | 64 +++ ..._net_stress_multicast_mcast6-queryfld01.sh | 64 +++ ..._net_stress_multicast_mcast6-queryfld02.sh | 64 +++ ..._net_stress_multicast_mcast6-queryfld03.sh | 64 +++ ..._net_stress_multicast_mcast6-queryfld04.sh | 64 +++ ..._net_stress_multicast_mcast6-queryfld05.sh | 64 +++ ..._net_stress_multicast_mcast6-queryfld06.sh | 64 +++ ..._ltp_net_stress_route_route4-change-dst.sh | 64 +++ ...t_ltp_net_stress_route_route4-change-gw.sh | 64 +++ ...t_ltp_net_stress_route_route4-change-if.sh | 64 +++ ..._stress_route_route4-change-netlink-dst.sh | 64 +++ ...t_stress_route_route4-change-netlink-gw.sh | 64 +++ ...t_stress_route_route4-change-netlink-if.sh | 64 +++ ...st_ltp_net_stress_route_route4-redirect.sh | 64 +++ ..._ltp_net_stress_route_route6-change-dst.sh | 64 +++ ...t_ltp_net_stress_route_route6-change-gw.sh | 64 +++ ...t_ltp_net_stress_route_route6-change-if.sh | 64 +++ ..._stress_route_route6-change-netlink-dst.sh | 64 +++ ...t_stress_route_route6-change-netlink-gw.sh | 64 +++ ...t_stress_route_route6-change-netlink-if.sh | 64 +++ ...st_ltp_net_stress_route_route6-redirect.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_arping01.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_dhcpd.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_dnsmasq.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_ftp.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_ipneigh01_arp.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_ipneigh01_ip.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_iproute.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_iptables.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_netstat.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_nft.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_ping01.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_ping02.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_sendfile.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_tc01.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_tcpdump.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_tracepath01.sh | 64 +++ .../oe_test_ltp_net_tcp_cmds_traceroute01.sh | 64 +++ ...p_net_tirpc_tests_tirpc_authnone_create.sh | 64 +++ ...tp_net_tirpc_tests_tirpc_authsys_create.sh | 64 +++ ...irpc_tests_tirpc_authsys_create_default.sh | 64 +++ ...tirpc_tests_tirpc_bottomlevel_clnt_call.sh | 64 +++ ..._ltp_net_tirpc_tests_tirpc_clnt_control.sh | 64 +++ ...t_ltp_net_tirpc_tests_tirpc_clnt_create.sh | 64 +++ ...net_tirpc_tests_tirpc_clnt_create_timed.sh | 64 +++ ..._ltp_net_tirpc_tests_tirpc_clnt_destroy.sh | 64 +++ ...tp_net_tirpc_tests_tirpc_clnt_dg_create.sh | 64 +++ ...net_tirpc_tests_tirpc_clnt_pcreateerror.sh | 64 +++ ...t_ltp_net_tirpc_tests_tirpc_clnt_perrno.sh | 64 +++ ...t_ltp_net_tirpc_tests_tirpc_clnt_perror.sh | 64 +++ ...p_net_tirpc_tests_tirpc_clnt_tli_create.sh | 64 +++ ...tp_net_tirpc_tests_tirpc_clnt_tp_create.sh | 64 +++ ..._tirpc_tests_tirpc_clnt_tp_create_timed.sh | 64 +++ ...tp_net_tirpc_tests_tirpc_clnt_vc_create.sh | 64 +++ ...tirpc_tests_tirpc_expertlevel_clnt_call.sh | 64 +++ ..._tirpc_tests_tirpc_interlevel_clnt_call.sh | 64 +++ ...ltp_net_tirpc_tests_tirpc_rpc_broadcast.sh | 64 +++ ...net_tirpc_tests_tirpc_rpc_broadcast_exp.sh | 64 +++ ...test_ltp_net_tirpc_tests_tirpc_rpc_call.sh | 64 +++ ..._test_ltp_net_tirpc_tests_tirpc_rpc_reg.sh | 64 +++ ..._ltp_net_tirpc_tests_tirpc_rpcb_getaddr.sh | 64 +++ ..._ltp_net_tirpc_tests_tirpc_rpcb_getmaps.sh | 64 +++ ..._ltp_net_tirpc_tests_tirpc_rpcb_rmtcall.sh | 64 +++ ...test_ltp_net_tirpc_tests_tirpc_rpcb_set.sh | 64 +++ ...st_ltp_net_tirpc_tests_tirpc_rpcb_unset.sh | 64 +++ ...st_ltp_net_tirpc_tests_tirpc_svc_create.sh | 64 +++ ...t_ltp_net_tirpc_tests_tirpc_svc_destroy.sh | 64 +++ ...ltp_net_tirpc_tests_tirpc_svc_dg_create.sh | 64 +++ ..._test_ltp_net_tirpc_tests_tirpc_svc_reg.sh | 64 +++ ...tp_net_tirpc_tests_tirpc_svc_tli_create.sh | 64 +++ ...ltp_net_tirpc_tests_tirpc_svc_tp_create.sh | 64 +++ ...est_ltp_net_tirpc_tests_tirpc_svc_unreg.sh | 64 +++ ...ltp_net_tirpc_tests_tirpc_svc_vc_create.sh | 64 +++ ...ltp_net_tirpc_tests_tirpc_svcerr_noproc.sh | 64 +++ ...ltp_net_tirpc_tests_tirpc_svcerr_noprog.sh | 64 +++ ...p_net_tirpc_tests_tirpc_svcerr_progvers.sh | 64 +++ ..._net_tirpc_tests_tirpc_svcerr_systemerr.sh | 64 +++ ...p_net_tirpc_tests_tirpc_svcerr_weakauth.sh | 64 +++ ...et_tirpc_tests_tirpc_toplevel_clnt_call.sh | 64 +++ .../ltp_nptl/oe_test_ltp_nptl_nptl01.sh | 2 +- .../oe_test_ltp_numa_migrate_pages01.sh | 64 +++ .../oe_test_ltp_numa_migrate_pages02.sh | 64 +++ .../oe_test_ltp_numa_migrate_pages03.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages01.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages02.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages03.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages04.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages05.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages06.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages07.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages09.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages10.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages11.sh | 64 +++ .../ltp_numa/oe_test_ltp_numa_move_pages12.sh | 64 +++ .../oe_test_ltp_numa_numa_testcases.sh | 64 +++ .../oe_test_ltp_numa_set_mempolicy01.sh | 64 +++ .../oe_test_ltp_numa_set_mempolicy02.sh | 64 +++ .../oe_test_ltp_numa_set_mempolicy03.sh | 64 +++ .../oe_test_ltp_numa_set_mempolicy04.sh | 64 +++ .../oe_test_ltp_numa_set_mempolicy05.sh | 64 +++ ...ltp_power_management_tests_runpwtests01.sh | 2 +- ...ltp_power_management_tests_runpwtests02.sh | 2 +- ...ltp_power_management_tests_runpwtests03.sh | 2 +- ...ltp_power_management_tests_runpwtests04.sh | 2 +- ...ltp_power_management_tests_runpwtests06.sh | 2 +- ..._tests_exclusive_runpwtests_exclusive01.sh | 64 +++ ..._tests_exclusive_runpwtests_exclusive02.sh | 64 +++ ..._tests_exclusive_runpwtests_exclusive03.sh | 64 +++ ..._tests_exclusive_runpwtests_exclusive04.sh | 64 +++ ..._tests_exclusive_runpwtests_exclusive05.sh | 64 +++ .../ltp_pty/oe_test_ltp_pty_hangup01.sh | 2 +- .../ltp_pty/oe_test_ltp_pty_ptem01.sh | 2 +- .../ltp-test/ltp_pty/oe_test_ltp_pty_pty01.sh | 2 +- .../ltp-test/ltp_pty/oe_test_ltp_pty_pty02.sh | 2 +- .../ltp-test/ltp_pty/oe_test_ltp_pty_pty03.sh | 2 +- .../ltp-test/ltp_pty/oe_test_ltp_pty_pty04.sh | 2 +- .../ltp-test/ltp_pty/oe_test_ltp_pty_pty05.sh | 2 +- .../ltp-test/ltp_pty/oe_test_ltp_pty_pty06.sh | 2 +- .../ltp-test/ltp_pty/oe_test_ltp_pty_pty07.sh | 2 +- .../oe_test_ltp_s390x_tests_vmcp.sh | 64 +++ .../oe_test_ltp_sched_autogroup01.sh | 2 +- .../oe_test_ltp_sched_cfs_bandwidth01.sh | 2 +- .../oe_test_ltp_sched_hackbench01.sh | 2 +- .../oe_test_ltp_sched_hackbench02.sh | 2 +- .../oe_test_ltp_sched_proc_sched_rt01.sh | 64 +++ .../ltp_sched/oe_test_ltp_sched_pth_str01.sh | 2 +- .../ltp_sched/oe_test_ltp_sched_pth_str02.sh | 2 +- .../ltp_sched/oe_test_ltp_sched_pth_str03.sh | 2 +- .../oe_test_ltp_sched_sched_cli_serv.sh | 2 +- .../oe_test_ltp_sched_sched_football.sh | 64 +++ .../oe_test_ltp_sched_sched_stress.sh | 2 +- .../ltp_sched/oe_test_ltp_sched_starvation.sh | 2 +- .../oe_test_ltp_sched_time-schedule01.sh | 2 +- .../oe_test_ltp_sched_trace_sched01.sh | 2 +- .../oe_test_ltp_scsi_debug_part1_gf101.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf102.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf103.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf104.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf105.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf106.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf107.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf108.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf109.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf110.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf111.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf112.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf113.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf114.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf115.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf116.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf117.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf118.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf119.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf120.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf121.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf122.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf123.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf124.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf125.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf126.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf127.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf128.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf129.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf130.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf201.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf202.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf203.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf204.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf205.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf206.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf207.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf208.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf209.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf210.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf211.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf212.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf213.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf214.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf215.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf216.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf217.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf218.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf219.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf220.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf221.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf222.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf223.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf224.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf225.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf226.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf227.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf228.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf229.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf230.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf301.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf302.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf303.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf304.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf305.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf306.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf307.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf308.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf309.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf310.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf311.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf312.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf313.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf314.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf315.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf316.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf317.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf318.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf319.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf320.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf321.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf322.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf323.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf324.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf325.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf326.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf327.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf328.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf329.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf330.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf701.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf702.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf703.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf704.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf705.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf706.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf707.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf708.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf709.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf710.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf711.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf712.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf713.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf714.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf715.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf716.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf717.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf718.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf719.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf720.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf721.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf722.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf723.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf724.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf725.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf726.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf727.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf728.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf729.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_gf730.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_rwtest01.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_rwtest02.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_rwtest03.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_rwtest04.sh | 64 +++ .../oe_test_ltp_scsi_debug_part1_rwtest05.sh | 64 +++ .../oe_test_ltp_smack_smack_file_access.sh | 64 +++ .../oe_test_ltp_smack_smack_set_ambient.sh | 64 +++ .../oe_test_ltp_smack_smack_set_cipso.sh | 64 +++ .../oe_test_ltp_smack_smack_set_current.sh | 64 +++ .../oe_test_ltp_smack_smack_set_direct.sh | 64 +++ .../oe_test_ltp_smack_smack_set_doi.sh | 64 +++ .../oe_test_ltp_smack_smack_set_load.sh | 64 +++ .../oe_test_ltp_smack_smack_set_netlabel.sh | 64 +++ .../oe_test_ltp_smack_smack_set_onlycap.sh | 64 +++ ..._test_ltp_smack_smack_set_socket_labels.sh | 64 +++ .../oe_test_ltp_smoketest_access01.sh | 64 +++ .../oe_test_ltp_smoketest_chdir01.sh | 64 +++ .../oe_test_ltp_smoketest_df01_sh.sh | 64 +++ .../oe_test_ltp_smoketest_fork01.sh | 64 +++ .../oe_test_ltp_smoketest_macsec02.sh | 64 +++ .../oe_test_ltp_smoketest_ping602.sh | 64 +++ .../oe_test_ltp_smoketest_shell_test01.sh | 64 +++ .../oe_test_ltp_smoketest_splice02.sh | 64 +++ .../oe_test_ltp_smoketest_stat04.sh | 64 +++ .../oe_test_ltp_smoketest_symlink01.sh | 64 +++ .../oe_test_ltp_smoketest_time01.sh | 64 +++ .../oe_test_ltp_smoketest_wait02.sh | 64 +++ .../oe_test_ltp_smoketest_write01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgctl01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgctl02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgctl03.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgctl04.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgctl05.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgctl06.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgctl12.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgget01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgget02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgget03.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgget04.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgget05.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgrcv01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgrcv02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgrcv03.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgrcv05.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgrcv06.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgrcv07.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgrcv08.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgsnd01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgsnd02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgsnd05.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgsnd06.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_msgstress01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semctl01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semctl02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semctl03.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semctl04.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semctl05.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semctl06.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semctl07.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semctl08.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semctl09.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semget01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semget02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semget05.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semop01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semop02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_semop03.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmat01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmat02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmat04.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmctl01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmctl02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmctl03.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmctl04.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmctl05.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmctl06.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmctl07.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmctl08.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmdt01.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmdt02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmget02.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmget03.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmget04.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmget05.sh | 64 +++ .../oe_test_ltp_syscalls-ipc_shmget06.sh | 64 +++ .../oe_test_ltp_syscalls_abort01.sh | 2 +- .../oe_test_ltp_syscalls_accept01.sh | 2 +- .../oe_test_ltp_syscalls_accept02.sh | 2 +- .../oe_test_ltp_syscalls_accept03.sh | 64 +++ .../oe_test_ltp_syscalls_accept4_01.sh | 2 +- .../oe_test_ltp_syscalls_access01.sh | 2 +- .../oe_test_ltp_syscalls_access02.sh | 2 +- .../oe_test_ltp_syscalls_access03.sh | 2 +- .../oe_test_ltp_syscalls_access04.sh | 2 +- .../oe_test_ltp_syscalls_acct01.sh | 2 +- .../oe_test_ltp_syscalls_acct02.sh | 2 +- .../oe_test_ltp_syscalls_add_key01.sh | 2 +- .../oe_test_ltp_syscalls_add_key02.sh | 2 +- .../oe_test_ltp_syscalls_add_key03.sh | 2 +- .../oe_test_ltp_syscalls_add_key04.sh | 2 +- .../oe_test_ltp_syscalls_add_key05.sh | 2 +- .../oe_test_ltp_syscalls_adjtimex01.sh | 2 +- .../oe_test_ltp_syscalls_adjtimex02.sh | 2 +- .../oe_test_ltp_syscalls_adjtimex03.sh | 2 +- .../oe_test_ltp_syscalls_alarm02.sh | 2 +- .../oe_test_ltp_syscalls_alarm03.sh | 2 +- .../oe_test_ltp_syscalls_alarm05.sh | 2 +- .../oe_test_ltp_syscalls_alarm06.sh | 2 +- .../oe_test_ltp_syscalls_alarm07.sh | 2 +- .../oe_test_ltp_syscalls_arch_prctl01.sh | 64 +++ .../oe_test_ltp_syscalls_bind01.sh | 2 +- .../oe_test_ltp_syscalls_bind02.sh | 2 +- .../oe_test_ltp_syscalls_bind03.sh | 2 +- .../oe_test_ltp_syscalls_bind04.sh | 2 +- .../oe_test_ltp_syscalls_bind05.sh | 2 +- .../oe_test_ltp_syscalls_bind06.sh | 2 +- .../oe_test_ltp_syscalls_bpf_map01.sh | 2 +- .../oe_test_ltp_syscalls_bpf_prog01.sh | 2 +- .../oe_test_ltp_syscalls_bpf_prog02.sh | 2 +- .../oe_test_ltp_syscalls_bpf_prog03.sh | 2 +- .../oe_test_ltp_syscalls_bpf_prog04.sh | 2 +- .../oe_test_ltp_syscalls_bpf_prog05.sh | 2 +- .../oe_test_ltp_syscalls_bpf_prog06.sh | 2 +- .../oe_test_ltp_syscalls_bpf_prog07.sh | 2 +- .../oe_test_ltp_syscalls_brk01.sh | 2 +- .../oe_test_ltp_syscalls_brk02.sh | 2 +- .../oe_test_ltp_syscalls_cacheflush01.sh | 2 +- .../oe_test_ltp_syscalls_cachestat01.sh | 64 +++ .../oe_test_ltp_syscalls_cachestat02.sh | 64 +++ .../oe_test_ltp_syscalls_cachestat03.sh | 64 +++ .../oe_test_ltp_syscalls_cachestat04.sh | 64 +++ .../oe_test_ltp_syscalls_capget01.sh | 2 +- .../oe_test_ltp_syscalls_capget02.sh | 2 +- .../oe_test_ltp_syscalls_capset01.sh | 2 +- .../oe_test_ltp_syscalls_capset02.sh | 2 +- .../oe_test_ltp_syscalls_capset03.sh | 2 +- .../oe_test_ltp_syscalls_capset04.sh | 2 +- .../oe_test_ltp_syscalls_chdir01.sh | 2 +- .../oe_test_ltp_syscalls_chdir01A.sh | 2 +- .../oe_test_ltp_syscalls_chdir04.sh | 2 +- .../oe_test_ltp_syscalls_chmod01.sh | 2 +- .../oe_test_ltp_syscalls_chmod01A.sh | 2 +- .../oe_test_ltp_syscalls_chmod03.sh | 2 +- .../oe_test_ltp_syscalls_chmod05.sh | 2 +- .../oe_test_ltp_syscalls_chmod06.sh | 2 +- .../oe_test_ltp_syscalls_chmod07.sh | 2 +- .../oe_test_ltp_syscalls_chmod08.sh | 64 +++ .../oe_test_ltp_syscalls_chown01.sh | 2 +- .../oe_test_ltp_syscalls_chown01_16.sh | 2 +- .../oe_test_ltp_syscalls_chown02.sh | 2 +- .../oe_test_ltp_syscalls_chown02_16.sh | 2 +- .../oe_test_ltp_syscalls_chown03.sh | 2 +- .../oe_test_ltp_syscalls_chown03_16.sh | 2 +- .../oe_test_ltp_syscalls_chown04.sh | 2 +- .../oe_test_ltp_syscalls_chown04_16.sh | 2 +- .../oe_test_ltp_syscalls_chown05.sh | 2 +- .../oe_test_ltp_syscalls_chown05_16.sh | 2 +- .../oe_test_ltp_syscalls_chroot01.sh | 2 +- .../oe_test_ltp_syscalls_chroot02.sh | 2 +- .../oe_test_ltp_syscalls_chroot03.sh | 2 +- .../oe_test_ltp_syscalls_chroot04.sh | 2 +- .../oe_test_ltp_syscalls_clock_adjtime01.sh | 2 +- .../oe_test_ltp_syscalls_clock_adjtime02.sh | 2 +- .../oe_test_ltp_syscalls_clock_getres01.sh | 2 +- .../oe_test_ltp_syscalls_clock_gettime01.sh | 2 +- .../oe_test_ltp_syscalls_clock_gettime02.sh | 2 +- .../oe_test_ltp_syscalls_clock_gettime03.sh | 2 +- .../oe_test_ltp_syscalls_clock_gettime04.sh | 2 +- .../oe_test_ltp_syscalls_clock_nanosleep01.sh | 2 +- .../oe_test_ltp_syscalls_clock_nanosleep02.sh | 2 +- .../oe_test_ltp_syscalls_clock_nanosleep03.sh | 2 +- .../oe_test_ltp_syscalls_clock_nanosleep04.sh | 2 +- .../oe_test_ltp_syscalls_clock_settime01.sh | 2 +- .../oe_test_ltp_syscalls_clock_settime02.sh | 2 +- .../oe_test_ltp_syscalls_clock_settime03.sh | 2 +- .../oe_test_ltp_syscalls_clone01.sh | 2 +- .../oe_test_ltp_syscalls_clone02.sh | 2 +- .../oe_test_ltp_syscalls_clone03.sh | 2 +- .../oe_test_ltp_syscalls_clone04.sh | 2 +- .../oe_test_ltp_syscalls_clone05.sh | 2 +- .../oe_test_ltp_syscalls_clone06.sh | 2 +- .../oe_test_ltp_syscalls_clone07.sh | 2 +- .../oe_test_ltp_syscalls_clone08.sh | 2 +- .../oe_test_ltp_syscalls_clone09.sh | 2 +- .../oe_test_ltp_syscalls_clone301.sh | 2 +- .../oe_test_ltp_syscalls_clone302.sh | 2 +- .../oe_test_ltp_syscalls_clone303.sh | 2 +- .../oe_test_ltp_syscalls_close01.sh | 2 +- .../oe_test_ltp_syscalls_close02.sh | 2 +- .../oe_test_ltp_syscalls_close_range01.sh | 2 +- .../oe_test_ltp_syscalls_close_range02.sh | 2 +- .../oe_test_ltp_syscalls_confstr01.sh | 2 +- .../oe_test_ltp_syscalls_connect01.sh | 2 +- .../oe_test_ltp_syscalls_connect02.sh | 2 +- .../oe_test_ltp_syscalls_copy_file_range01.sh | 2 +- .../oe_test_ltp_syscalls_copy_file_range02.sh | 2 +- .../oe_test_ltp_syscalls_copy_file_range03.sh | 2 +- .../oe_test_ltp_syscalls_creat01.sh | 2 +- .../oe_test_ltp_syscalls_creat03.sh | 2 +- .../oe_test_ltp_syscalls_creat04.sh | 2 +- .../oe_test_ltp_syscalls_creat05.sh | 2 +- .../oe_test_ltp_syscalls_creat06.sh | 2 +- .../oe_test_ltp_syscalls_creat07.sh | 2 +- .../oe_test_ltp_syscalls_creat08.sh | 2 +- .../oe_test_ltp_syscalls_creat09.sh | 2 +- .../oe_test_ltp_syscalls_delete_module01.sh | 2 +- .../oe_test_ltp_syscalls_delete_module02.sh | 2 +- .../oe_test_ltp_syscalls_delete_module03.sh | 2 +- .../oe_test_ltp_syscalls_dirtyc0w.sh | 2 +- .../oe_test_ltp_syscalls_dirtyc0w_shmem.sh | 2 +- .../oe_test_ltp_syscalls_dirtypipe.sh | 2 +- .../oe_test_ltp_syscalls_dup01.sh | 2 +- .../oe_test_ltp_syscalls_dup02.sh | 2 +- .../oe_test_ltp_syscalls_dup03.sh | 2 +- .../oe_test_ltp_syscalls_dup04.sh | 2 +- .../oe_test_ltp_syscalls_dup05.sh | 2 +- .../oe_test_ltp_syscalls_dup06.sh | 2 +- .../oe_test_ltp_syscalls_dup07.sh | 2 +- .../oe_test_ltp_syscalls_dup201.sh | 2 +- .../oe_test_ltp_syscalls_dup202.sh | 2 +- .../oe_test_ltp_syscalls_dup203.sh | 2 +- .../oe_test_ltp_syscalls_dup204.sh | 2 +- .../oe_test_ltp_syscalls_dup205.sh | 2 +- .../oe_test_ltp_syscalls_dup206.sh | 2 +- .../oe_test_ltp_syscalls_dup207.sh | 2 +- .../oe_test_ltp_syscalls_dup3_01.sh | 2 +- .../oe_test_ltp_syscalls_dup3_02.sh | 2 +- .../oe_test_ltp_syscalls_epoll01.sh | 2 +- .../oe_test_ltp_syscalls_epoll_create01.sh | 2 +- .../oe_test_ltp_syscalls_epoll_create02.sh | 2 +- .../oe_test_ltp_syscalls_epoll_create1_01.sh | 2 +- .../oe_test_ltp_syscalls_epoll_create1_02.sh | 2 +- .../oe_test_ltp_syscalls_epoll_ctl01.sh | 2 +- .../oe_test_ltp_syscalls_epoll_ctl02.sh | 2 +- .../oe_test_ltp_syscalls_epoll_ctl03.sh | 2 +- .../oe_test_ltp_syscalls_epoll_ctl04.sh | 2 +- .../oe_test_ltp_syscalls_epoll_ctl05.sh | 2 +- .../oe_test_ltp_syscalls_epoll_pwait01.sh | 2 +- .../oe_test_ltp_syscalls_epoll_pwait02.sh | 2 +- .../oe_test_ltp_syscalls_epoll_pwait03.sh | 2 +- .../oe_test_ltp_syscalls_epoll_pwait04.sh | 2 +- .../oe_test_ltp_syscalls_epoll_pwait05.sh | 2 +- .../oe_test_ltp_syscalls_epoll_wait01.sh | 2 +- .../oe_test_ltp_syscalls_epoll_wait02.sh | 2 +- .../oe_test_ltp_syscalls_epoll_wait03.sh | 2 +- .../oe_test_ltp_syscalls_epoll_wait04.sh | 2 +- .../oe_test_ltp_syscalls_epoll_wait05.sh | 2 +- .../oe_test_ltp_syscalls_epoll_wait06.sh | 2 +- .../oe_test_ltp_syscalls_epoll_wait07.sh | 2 +- .../oe_test_ltp_syscalls_eventfd01.sh | 2 +- .../oe_test_ltp_syscalls_eventfd02.sh | 2 +- .../oe_test_ltp_syscalls_eventfd03.sh | 2 +- .../oe_test_ltp_syscalls_eventfd04.sh | 2 +- .../oe_test_ltp_syscalls_eventfd05.sh | 2 +- .../oe_test_ltp_syscalls_eventfd06.sh | 2 +- .../oe_test_ltp_syscalls_eventfd2_01.sh | 2 +- .../oe_test_ltp_syscalls_eventfd2_02.sh | 2 +- .../oe_test_ltp_syscalls_eventfd2_03.sh | 2 +- .../oe_test_ltp_syscalls_execl01.sh | 2 +- .../oe_test_ltp_syscalls_execle01.sh | 2 +- .../oe_test_ltp_syscalls_execlp01.sh | 2 +- .../oe_test_ltp_syscalls_execv01.sh | 2 +- .../oe_test_ltp_syscalls_execve01.sh | 2 +- .../oe_test_ltp_syscalls_execve02.sh | 2 +- .../oe_test_ltp_syscalls_execve03.sh | 2 +- .../oe_test_ltp_syscalls_execve04.sh | 2 +- .../oe_test_ltp_syscalls_execve05.sh | 2 +- .../oe_test_ltp_syscalls_execve06.sh | 2 +- .../oe_test_ltp_syscalls_execveat01.sh | 2 +- .../oe_test_ltp_syscalls_execveat02.sh | 2 +- .../oe_test_ltp_syscalls_execveat03.sh | 2 +- .../oe_test_ltp_syscalls_execvp01.sh | 2 +- .../oe_test_ltp_syscalls_exit01.sh | 2 +- .../oe_test_ltp_syscalls_exit02.sh | 2 +- .../oe_test_ltp_syscalls_exit_group01.sh | 2 +- .../oe_test_ltp_syscalls_faccessat01.sh | 2 +- .../oe_test_ltp_syscalls_faccessat02.sh | 2 +- .../oe_test_ltp_syscalls_faccessat201.sh | 2 +- .../oe_test_ltp_syscalls_faccessat202.sh | 2 +- .../oe_test_ltp_syscalls_fallocate01.sh | 2 +- .../oe_test_ltp_syscalls_fallocate02.sh | 2 +- .../oe_test_ltp_syscalls_fallocate03.sh | 2 +- .../oe_test_ltp_syscalls_fallocate04.sh | 2 +- .../oe_test_ltp_syscalls_fallocate05.sh | 2 +- .../oe_test_ltp_syscalls_fallocate06.sh | 2 +- .../oe_test_ltp_syscalls_fanotify01.sh | 2 +- .../oe_test_ltp_syscalls_fanotify02.sh | 2 +- .../oe_test_ltp_syscalls_fanotify03.sh | 2 +- .../oe_test_ltp_syscalls_fanotify04.sh | 2 +- .../oe_test_ltp_syscalls_fanotify05.sh | 2 +- .../oe_test_ltp_syscalls_fanotify06.sh | 2 +- .../oe_test_ltp_syscalls_fanotify07.sh | 2 +- .../oe_test_ltp_syscalls_fanotify08.sh | 2 +- .../oe_test_ltp_syscalls_fanotify09.sh | 2 +- .../oe_test_ltp_syscalls_fanotify10.sh | 2 +- .../oe_test_ltp_syscalls_fanotify11.sh | 2 +- .../oe_test_ltp_syscalls_fanotify12.sh | 2 +- .../oe_test_ltp_syscalls_fanotify13.sh | 2 +- .../oe_test_ltp_syscalls_fanotify14.sh | 2 +- .../oe_test_ltp_syscalls_fanotify15.sh | 2 +- .../oe_test_ltp_syscalls_fanotify16.sh | 2 +- .../oe_test_ltp_syscalls_fanotify17.sh | 2 +- .../oe_test_ltp_syscalls_fanotify18.sh | 2 +- .../oe_test_ltp_syscalls_fanotify19.sh | 2 +- .../oe_test_ltp_syscalls_fanotify20.sh | 2 +- .../oe_test_ltp_syscalls_fanotify21.sh | 2 +- .../oe_test_ltp_syscalls_fanotify22.sh | 2 +- .../oe_test_ltp_syscalls_fanotify23.sh | 2 +- .../oe_test_ltp_syscalls_fchdir01.sh | 2 +- .../oe_test_ltp_syscalls_fchdir02.sh | 2 +- .../oe_test_ltp_syscalls_fchdir03.sh | 2 +- .../oe_test_ltp_syscalls_fchmod01.sh | 2 +- .../oe_test_ltp_syscalls_fchmod02.sh | 2 +- .../oe_test_ltp_syscalls_fchmod03.sh | 2 +- .../oe_test_ltp_syscalls_fchmod04.sh | 2 +- .../oe_test_ltp_syscalls_fchmod05.sh | 2 +- .../oe_test_ltp_syscalls_fchmod06.sh | 2 +- .../oe_test_ltp_syscalls_fchmodat01.sh | 2 +- .../oe_test_ltp_syscalls_fchmodat02.sh | 2 +- .../oe_test_ltp_syscalls_fchmodat2_01.sh | 64 +++ .../oe_test_ltp_syscalls_fchmodat2_02.sh | 64 +++ .../oe_test_ltp_syscalls_fchown01.sh | 2 +- .../oe_test_ltp_syscalls_fchown01_16.sh | 2 +- .../oe_test_ltp_syscalls_fchown02.sh | 2 +- .../oe_test_ltp_syscalls_fchown02_16.sh | 2 +- .../oe_test_ltp_syscalls_fchown03.sh | 2 +- .../oe_test_ltp_syscalls_fchown03_16.sh | 2 +- .../oe_test_ltp_syscalls_fchown04.sh | 2 +- .../oe_test_ltp_syscalls_fchown04_16.sh | 2 +- .../oe_test_ltp_syscalls_fchown05.sh | 2 +- .../oe_test_ltp_syscalls_fchown05_16.sh | 2 +- .../oe_test_ltp_syscalls_fchownat01.sh | 2 +- .../oe_test_ltp_syscalls_fchownat02.sh | 2 +- .../oe_test_ltp_syscalls_fcntl01.sh | 2 +- .../oe_test_ltp_syscalls_fcntl01_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl02.sh | 2 +- .../oe_test_ltp_syscalls_fcntl02_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl03.sh | 2 +- .../oe_test_ltp_syscalls_fcntl03_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl04.sh | 2 +- .../oe_test_ltp_syscalls_fcntl04_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl05.sh | 2 +- .../oe_test_ltp_syscalls_fcntl05_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl07.sh | 2 +- .../oe_test_ltp_syscalls_fcntl07_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl08.sh | 2 +- .../oe_test_ltp_syscalls_fcntl08_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl09.sh | 2 +- .../oe_test_ltp_syscalls_fcntl09_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl10.sh | 2 +- .../oe_test_ltp_syscalls_fcntl10_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl11.sh | 2 +- .../oe_test_ltp_syscalls_fcntl11_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl12.sh | 2 +- .../oe_test_ltp_syscalls_fcntl12_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl13.sh | 2 +- .../oe_test_ltp_syscalls_fcntl13_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl14.sh | 2 +- .../oe_test_ltp_syscalls_fcntl14_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl15.sh | 2 +- .../oe_test_ltp_syscalls_fcntl15_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl16.sh | 2 +- .../oe_test_ltp_syscalls_fcntl16_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl17.sh | 2 +- .../oe_test_ltp_syscalls_fcntl17_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl18.sh | 2 +- .../oe_test_ltp_syscalls_fcntl18_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl19.sh | 2 +- .../oe_test_ltp_syscalls_fcntl19_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl20.sh | 2 +- .../oe_test_ltp_syscalls_fcntl20_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl21.sh | 2 +- .../oe_test_ltp_syscalls_fcntl21_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl22.sh | 2 +- .../oe_test_ltp_syscalls_fcntl22_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl23.sh | 2 +- .../oe_test_ltp_syscalls_fcntl23_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl24.sh | 2 +- .../oe_test_ltp_syscalls_fcntl24_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl25.sh | 2 +- .../oe_test_ltp_syscalls_fcntl25_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl26.sh | 2 +- .../oe_test_ltp_syscalls_fcntl26_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl27.sh | 2 +- .../oe_test_ltp_syscalls_fcntl27_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl29.sh | 2 +- .../oe_test_ltp_syscalls_fcntl29_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl30.sh | 2 +- .../oe_test_ltp_syscalls_fcntl30_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl31.sh | 2 +- .../oe_test_ltp_syscalls_fcntl31_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl32.sh | 2 +- .../oe_test_ltp_syscalls_fcntl32_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl33.sh | 2 +- .../oe_test_ltp_syscalls_fcntl33_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl34.sh | 2 +- .../oe_test_ltp_syscalls_fcntl34_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl35.sh | 2 +- .../oe_test_ltp_syscalls_fcntl35_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl36.sh | 2 +- .../oe_test_ltp_syscalls_fcntl36_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl37.sh | 2 +- .../oe_test_ltp_syscalls_fcntl37_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl38.sh | 2 +- .../oe_test_ltp_syscalls_fcntl38_64.sh | 2 +- .../oe_test_ltp_syscalls_fcntl39.sh | 2 +- .../oe_test_ltp_syscalls_fcntl39_64.sh | 2 +- .../oe_test_ltp_syscalls_fdatasync01.sh | 2 +- .../oe_test_ltp_syscalls_fdatasync02.sh | 2 +- .../oe_test_ltp_syscalls_fdatasync03.sh | 2 +- .../oe_test_ltp_syscalls_fgetxattr01.sh | 2 +- .../oe_test_ltp_syscalls_fgetxattr02.sh | 2 +- .../oe_test_ltp_syscalls_fgetxattr03.sh | 2 +- .../oe_test_ltp_syscalls_finit_module01.sh | 2 +- .../oe_test_ltp_syscalls_finit_module02.sh | 2 +- .../oe_test_ltp_syscalls_flistxattr01.sh | 2 +- .../oe_test_ltp_syscalls_flistxattr02.sh | 2 +- .../oe_test_ltp_syscalls_flistxattr03.sh | 2 +- .../oe_test_ltp_syscalls_flock01.sh | 2 +- .../oe_test_ltp_syscalls_flock02.sh | 2 +- .../oe_test_ltp_syscalls_flock03.sh | 2 +- .../oe_test_ltp_syscalls_flock04.sh | 2 +- .../oe_test_ltp_syscalls_flock06.sh | 2 +- .../oe_test_ltp_syscalls_fmtmsg01.sh | 2 +- .../oe_test_ltp_syscalls_fork01.sh | 2 +- .../oe_test_ltp_syscalls_fork03.sh | 2 +- .../oe_test_ltp_syscalls_fork04.sh | 2 +- .../oe_test_ltp_syscalls_fork05.sh | 2 +- .../oe_test_ltp_syscalls_fork06.sh | 2 +- .../oe_test_ltp_syscalls_fork07.sh | 2 +- .../oe_test_ltp_syscalls_fork08.sh | 2 +- .../oe_test_ltp_syscalls_fork09.sh | 2 +- .../oe_test_ltp_syscalls_fork10.sh | 2 +- .../oe_test_ltp_syscalls_fork11.sh | 2 +- .../oe_test_ltp_syscalls_fork13.sh | 2 +- .../oe_test_ltp_syscalls_fork14.sh | 2 +- .../oe_test_ltp_syscalls_fpathconf01.sh | 2 +- .../oe_test_ltp_syscalls_fremovexattr01.sh | 2 +- .../oe_test_ltp_syscalls_fremovexattr02.sh | 2 +- .../oe_test_ltp_syscalls_fsconfig01.sh | 2 +- .../oe_test_ltp_syscalls_fsconfig02.sh | 2 +- .../oe_test_ltp_syscalls_fsconfig03.sh | 2 +- .../oe_test_ltp_syscalls_fsetxattr01.sh | 2 +- .../oe_test_ltp_syscalls_fsetxattr02.sh | 2 +- .../oe_test_ltp_syscalls_fsmount01.sh | 2 +- .../oe_test_ltp_syscalls_fsmount02.sh | 2 +- .../oe_test_ltp_syscalls_fsopen01.sh | 2 +- .../oe_test_ltp_syscalls_fsopen02.sh | 2 +- .../oe_test_ltp_syscalls_fspick01.sh | 2 +- .../oe_test_ltp_syscalls_fspick02.sh | 2 +- .../oe_test_ltp_syscalls_fstat02.sh | 2 +- .../oe_test_ltp_syscalls_fstat02_64.sh | 2 +- .../oe_test_ltp_syscalls_fstat03.sh | 2 +- .../oe_test_ltp_syscalls_fstat03_64.sh | 2 +- .../oe_test_ltp_syscalls_fstatat01.sh | 2 +- .../oe_test_ltp_syscalls_fstatfs01.sh | 2 +- .../oe_test_ltp_syscalls_fstatfs01_64.sh | 2 +- .../oe_test_ltp_syscalls_fstatfs02.sh | 2 +- .../oe_test_ltp_syscalls_fstatfs02_64.sh | 2 +- .../oe_test_ltp_syscalls_fsync01.sh | 2 +- .../oe_test_ltp_syscalls_fsync02.sh | 2 +- .../oe_test_ltp_syscalls_fsync03.sh | 2 +- .../oe_test_ltp_syscalls_fsync04.sh | 2 +- .../oe_test_ltp_syscalls_ftruncate01.sh | 2 +- .../oe_test_ltp_syscalls_ftruncate01_64.sh | 2 +- .../oe_test_ltp_syscalls_ftruncate03.sh | 2 +- .../oe_test_ltp_syscalls_ftruncate03_64.sh | 2 +- .../oe_test_ltp_syscalls_ftruncate04.sh | 2 +- .../oe_test_ltp_syscalls_ftruncate04_64.sh | 2 +- ...e_test_ltp_syscalls_futex_cmp_requeue01.sh | 2 +- ...e_test_ltp_syscalls_futex_cmp_requeue02.sh | 2 +- .../oe_test_ltp_syscalls_futex_wait01.sh | 2 +- .../oe_test_ltp_syscalls_futex_wait02.sh | 2 +- .../oe_test_ltp_syscalls_futex_wait03.sh | 2 +- .../oe_test_ltp_syscalls_futex_wait04.sh | 2 +- .../oe_test_ltp_syscalls_futex_wait05.sh | 2 +- ...e_test_ltp_syscalls_futex_wait_bitset01.sh | 2 +- .../oe_test_ltp_syscalls_futex_waitv01.sh | 2 +- .../oe_test_ltp_syscalls_futex_waitv02.sh | 2 +- .../oe_test_ltp_syscalls_futex_waitv03.sh | 2 +- .../oe_test_ltp_syscalls_futex_wake01.sh | 2 +- .../oe_test_ltp_syscalls_futex_wake02.sh | 2 +- .../oe_test_ltp_syscalls_futex_wake03.sh | 2 +- .../oe_test_ltp_syscalls_futex_wake04.sh | 2 +- .../oe_test_ltp_syscalls_futimesat01.sh | 2 +- .../oe_test_ltp_syscalls_get_mempolicy01.sh | 2 +- .../oe_test_ltp_syscalls_get_mempolicy02.sh | 2 +- .../oe_test_ltp_syscalls_get_robust_list01.sh | 2 +- .../oe_test_ltp_syscalls_getcontext01.sh | 2 +- .../oe_test_ltp_syscalls_getcpu01.sh | 2 +- .../oe_test_ltp_syscalls_getcpu02.sh | 64 +++ .../oe_test_ltp_syscalls_getcwd01.sh | 2 +- .../oe_test_ltp_syscalls_getcwd02.sh | 2 +- .../oe_test_ltp_syscalls_getcwd03.sh | 2 +- .../oe_test_ltp_syscalls_getcwd04.sh | 2 +- .../oe_test_ltp_syscalls_getdents01.sh | 2 +- .../oe_test_ltp_syscalls_getdents02.sh | 2 +- .../oe_test_ltp_syscalls_getdomainname01.sh | 2 +- .../oe_test_ltp_syscalls_getegid01.sh | 2 +- .../oe_test_ltp_syscalls_getegid01_16.sh | 2 +- .../oe_test_ltp_syscalls_getegid02.sh | 2 +- .../oe_test_ltp_syscalls_getegid02_16.sh | 2 +- .../oe_test_ltp_syscalls_geteuid01.sh | 2 +- .../oe_test_ltp_syscalls_geteuid01_16.sh | 2 +- .../oe_test_ltp_syscalls_geteuid02.sh | 2 +- .../oe_test_ltp_syscalls_geteuid02_16.sh | 2 +- .../oe_test_ltp_syscalls_getgid01.sh | 2 +- .../oe_test_ltp_syscalls_getgid01_16.sh | 2 +- .../oe_test_ltp_syscalls_getgid03.sh | 2 +- .../oe_test_ltp_syscalls_getgid03_16.sh | 2 +- .../oe_test_ltp_syscalls_getgroups01.sh | 2 +- .../oe_test_ltp_syscalls_getgroups01_16.sh | 2 +- .../oe_test_ltp_syscalls_getgroups03.sh | 2 +- .../oe_test_ltp_syscalls_getgroups03_16.sh | 2 +- .../oe_test_ltp_syscalls_gethostbyname_r01.sh | 2 +- .../oe_test_ltp_syscalls_gethostid01.sh | 2 +- .../oe_test_ltp_syscalls_gethostname01.sh | 2 +- .../oe_test_ltp_syscalls_gethostname02.sh | 64 +++ .../oe_test_ltp_syscalls_getitimer01.sh | 2 +- .../oe_test_ltp_syscalls_getitimer02.sh | 2 +- .../oe_test_ltp_syscalls_getpagesize01.sh | 2 +- .../oe_test_ltp_syscalls_getpeername01.sh | 2 +- .../oe_test_ltp_syscalls_getpgid01.sh | 2 +- .../oe_test_ltp_syscalls_getpgid02.sh | 2 +- .../oe_test_ltp_syscalls_getpgrp01.sh | 2 +- .../oe_test_ltp_syscalls_getpid01.sh | 2 +- .../oe_test_ltp_syscalls_getpid02.sh | 2 +- .../oe_test_ltp_syscalls_getppid01.sh | 2 +- .../oe_test_ltp_syscalls_getppid02.sh | 2 +- .../oe_test_ltp_syscalls_getpriority01.sh | 2 +- .../oe_test_ltp_syscalls_getpriority02.sh | 2 +- .../oe_test_ltp_syscalls_getrandom01.sh | 2 +- .../oe_test_ltp_syscalls_getrandom02.sh | 2 +- .../oe_test_ltp_syscalls_getrandom03.sh | 2 +- .../oe_test_ltp_syscalls_getrandom04.sh | 2 +- .../oe_test_ltp_syscalls_getrandom05.sh | 64 +++ .../oe_test_ltp_syscalls_getresgid01.sh | 2 +- .../oe_test_ltp_syscalls_getresgid01_16.sh | 2 +- .../oe_test_ltp_syscalls_getresgid02.sh | 2 +- .../oe_test_ltp_syscalls_getresgid02_16.sh | 2 +- .../oe_test_ltp_syscalls_getresgid03.sh | 2 +- .../oe_test_ltp_syscalls_getresgid03_16.sh | 2 +- .../oe_test_ltp_syscalls_getresuid01.sh | 2 +- .../oe_test_ltp_syscalls_getresuid01_16.sh | 2 +- .../oe_test_ltp_syscalls_getresuid02.sh | 2 +- .../oe_test_ltp_syscalls_getresuid02_16.sh | 2 +- .../oe_test_ltp_syscalls_getresuid03.sh | 2 +- .../oe_test_ltp_syscalls_getresuid03_16.sh | 2 +- .../oe_test_ltp_syscalls_getrlimit01.sh | 2 +- .../oe_test_ltp_syscalls_getrlimit02.sh | 2 +- .../oe_test_ltp_syscalls_getrlimit03.sh | 2 +- .../oe_test_ltp_syscalls_getrusage01.sh | 2 +- .../oe_test_ltp_syscalls_getrusage02.sh | 2 +- .../oe_test_ltp_syscalls_getrusage03.sh | 2 +- .../oe_test_ltp_syscalls_getrusage04.sh | 2 +- .../oe_test_ltp_syscalls_getsid01.sh | 2 +- .../oe_test_ltp_syscalls_getsid02.sh | 2 +- .../oe_test_ltp_syscalls_getsockname01.sh | 2 +- .../oe_test_ltp_syscalls_getsockopt01.sh | 2 +- .../oe_test_ltp_syscalls_getsockopt02.sh | 2 +- .../oe_test_ltp_syscalls_gettid01.sh | 2 +- .../oe_test_ltp_syscalls_gettid02.sh | 2 +- .../oe_test_ltp_syscalls_gettimeofday01.sh | 2 +- .../oe_test_ltp_syscalls_gettimeofday02.sh | 2 +- .../oe_test_ltp_syscalls_getuid01.sh | 2 +- .../oe_test_ltp_syscalls_getuid01_16.sh | 2 +- .../oe_test_ltp_syscalls_getuid03.sh | 2 +- .../oe_test_ltp_syscalls_getuid03_16.sh | 2 +- .../oe_test_ltp_syscalls_getxattr01.sh | 2 +- .../oe_test_ltp_syscalls_getxattr02.sh | 2 +- .../oe_test_ltp_syscalls_getxattr03.sh | 2 +- .../oe_test_ltp_syscalls_getxattr04.sh | 2 +- .../oe_test_ltp_syscalls_getxattr05.sh | 2 +- .../oe_test_ltp_syscalls_init_module01.sh | 2 +- .../oe_test_ltp_syscalls_init_module02.sh | 2 +- .../oe_test_ltp_syscalls_inotify01.sh | 2 +- .../oe_test_ltp_syscalls_inotify02.sh | 2 +- .../oe_test_ltp_syscalls_inotify03.sh | 2 +- .../oe_test_ltp_syscalls_inotify04.sh | 2 +- .../oe_test_ltp_syscalls_inotify05.sh | 2 +- .../oe_test_ltp_syscalls_inotify06.sh | 2 +- .../oe_test_ltp_syscalls_inotify07.sh | 2 +- .../oe_test_ltp_syscalls_inotify08.sh | 2 +- .../oe_test_ltp_syscalls_inotify09.sh | 2 +- .../oe_test_ltp_syscalls_inotify10.sh | 2 +- .../oe_test_ltp_syscalls_inotify11.sh | 2 +- .../oe_test_ltp_syscalls_inotify12.sh | 2 +- .../oe_test_ltp_syscalls_inotify_init1_01.sh | 2 +- .../oe_test_ltp_syscalls_inotify_init1_02.sh | 2 +- .../oe_test_ltp_syscalls_io_cancel01.sh | 2 +- .../oe_test_ltp_syscalls_io_cancel02.sh | 2 +- .../oe_test_ltp_syscalls_io_destroy01.sh | 2 +- .../oe_test_ltp_syscalls_io_destroy02.sh | 2 +- .../oe_test_ltp_syscalls_io_getevents01.sh | 2 +- .../oe_test_ltp_syscalls_io_getevents02.sh | 2 +- .../oe_test_ltp_syscalls_io_pgetevents01.sh | 2 +- .../oe_test_ltp_syscalls_io_pgetevents02.sh | 2 +- .../oe_test_ltp_syscalls_io_setup01.sh | 2 +- .../oe_test_ltp_syscalls_io_setup02.sh | 2 +- .../oe_test_ltp_syscalls_io_submit01.sh | 2 +- .../oe_test_ltp_syscalls_io_submit02.sh | 2 +- .../oe_test_ltp_syscalls_io_submit03.sh | 2 +- .../oe_test_ltp_syscalls_io_uring01.sh | 2 +- .../oe_test_ltp_syscalls_io_uring02.sh | 2 +- .../oe_test_ltp_syscalls_ioctl01.sh | 2 +- .../oe_test_ltp_syscalls_ioctl02.sh | 2 +- .../oe_test_ltp_syscalls_ioctl03.sh | 2 +- .../oe_test_ltp_syscalls_ioctl04.sh | 2 +- .../oe_test_ltp_syscalls_ioctl05.sh | 2 +- .../oe_test_ltp_syscalls_ioctl06.sh | 2 +- .../oe_test_ltp_syscalls_ioctl07.sh | 2 +- .../oe_test_ltp_syscalls_ioctl08.sh | 2 +- .../oe_test_ltp_syscalls_ioctl09.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_ficlone01.sh | 64 +++ .../oe_test_ltp_syscalls_ioctl_ficlone02.sh | 64 +++ .../oe_test_ltp_syscalls_ioctl_ficlone03.sh | 64 +++ ..._test_ltp_syscalls_ioctl_ficlonerange01.sh | 64 +++ ..._test_ltp_syscalls_ioctl_ficlonerange02.sh | 64 +++ .../oe_test_ltp_syscalls_ioctl_loop01.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_loop02.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_loop03.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_loop04.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_loop05.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_loop06.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_loop07.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_ns01.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_ns02.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_ns03.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_ns04.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_ns05.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_ns06.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_ns07.sh | 2 +- .../oe_test_ltp_syscalls_ioctl_sg01.sh | 2 +- .../oe_test_ltp_syscalls_ioperm01.sh | 2 +- .../oe_test_ltp_syscalls_ioperm02.sh | 2 +- .../oe_test_ltp_syscalls_iopl01.sh | 2 +- .../oe_test_ltp_syscalls_iopl02.sh | 2 +- .../oe_test_ltp_syscalls_ioprio_get01.sh | 2 +- .../oe_test_ltp_syscalls_ioprio_set01.sh | 2 +- .../oe_test_ltp_syscalls_ioprio_set02.sh | 2 +- .../oe_test_ltp_syscalls_ioprio_set03.sh | 2 +- .../oe_test_ltp_syscalls_kcmp01.sh | 2 +- .../oe_test_ltp_syscalls_kcmp02.sh | 2 +- .../oe_test_ltp_syscalls_kcmp03.sh | 2 +- .../oe_test_ltp_syscalls_keyctl01.sh | 2 +- .../oe_test_ltp_syscalls_keyctl02.sh | 2 +- .../oe_test_ltp_syscalls_keyctl03.sh | 2 +- .../oe_test_ltp_syscalls_keyctl04.sh | 2 +- .../oe_test_ltp_syscalls_keyctl05.sh | 2 +- .../oe_test_ltp_syscalls_keyctl06.sh | 2 +- .../oe_test_ltp_syscalls_keyctl07.sh | 2 +- .../oe_test_ltp_syscalls_keyctl08.sh | 2 +- .../oe_test_ltp_syscalls_keyctl09.sh | 2 +- .../oe_test_ltp_syscalls_kill02.sh | 2 +- .../oe_test_ltp_syscalls_kill03.sh | 2 +- .../oe_test_ltp_syscalls_kill05.sh | 2 +- .../oe_test_ltp_syscalls_kill06.sh | 2 +- .../oe_test_ltp_syscalls_kill07.sh | 2 +- .../oe_test_ltp_syscalls_kill08.sh | 2 +- .../oe_test_ltp_syscalls_kill09.sh | 2 +- .../oe_test_ltp_syscalls_kill10.sh | 2 +- .../oe_test_ltp_syscalls_kill11.sh | 2 +- .../oe_test_ltp_syscalls_kill12.sh | 2 +- .../oe_test_ltp_syscalls_kill13.sh | 2 +- .../oe_test_ltp_syscalls_landlock01.sh | 64 +++ .../oe_test_ltp_syscalls_landlock02.sh | 64 +++ .../oe_test_ltp_syscalls_landlock03.sh | 64 +++ .../oe_test_ltp_syscalls_landlock04.sh | 64 +++ .../oe_test_ltp_syscalls_landlock05.sh | 64 +++ .../oe_test_ltp_syscalls_landlock06.sh | 64 +++ .../oe_test_ltp_syscalls_lchown01.sh | 2 +- .../oe_test_ltp_syscalls_lchown01_16.sh | 2 +- .../oe_test_ltp_syscalls_lchown02.sh | 2 +- .../oe_test_ltp_syscalls_lchown02_16.sh | 2 +- .../oe_test_ltp_syscalls_lchown03.sh | 2 +- .../oe_test_ltp_syscalls_lchown03_16.sh | 2 +- .../oe_test_ltp_syscalls_leapsec01.sh | 2 +- .../oe_test_ltp_syscalls_lgetxattr01.sh | 2 +- .../oe_test_ltp_syscalls_lgetxattr02.sh | 2 +- .../oe_test_ltp_syscalls_link01.sh | 2 +- .../oe_test_ltp_syscalls_link02.sh | 2 +- .../oe_test_ltp_syscalls_link04.sh | 2 +- .../oe_test_ltp_syscalls_link05.sh | 2 +- .../oe_test_ltp_syscalls_link08.sh | 2 +- .../oe_test_ltp_syscalls_linkat01.sh | 2 +- .../oe_test_ltp_syscalls_linkat02.sh | 2 +- .../oe_test_ltp_syscalls_listen01.sh | 2 +- .../oe_test_ltp_syscalls_listxattr01.sh | 2 +- .../oe_test_ltp_syscalls_listxattr02.sh | 2 +- .../oe_test_ltp_syscalls_listxattr03.sh | 2 +- .../oe_test_ltp_syscalls_llistxattr01.sh | 2 +- .../oe_test_ltp_syscalls_llistxattr02.sh | 2 +- .../oe_test_ltp_syscalls_llistxattr03.sh | 2 +- .../oe_test_ltp_syscalls_llseek01.sh | 2 +- .../oe_test_ltp_syscalls_llseek02.sh | 2 +- .../oe_test_ltp_syscalls_llseek03.sh | 2 +- .../oe_test_ltp_syscalls_lremovexattr01.sh | 2 +- .../oe_test_ltp_syscalls_lseek01.sh | 2 +- .../oe_test_ltp_syscalls_lseek02.sh | 2 +- .../oe_test_ltp_syscalls_lseek07.sh | 2 +- .../oe_test_ltp_syscalls_lseek11.sh | 2 +- .../oe_test_ltp_syscalls_lstat01.sh | 2 +- .../oe_test_ltp_syscalls_lstat01_64.sh | 2 +- .../oe_test_ltp_syscalls_lstat02.sh | 2 +- .../oe_test_ltp_syscalls_lstat02_64.sh | 2 +- .../oe_test_ltp_syscalls_lstat03.sh | 64 +++ .../oe_test_ltp_syscalls_lstat03_64.sh | 64 +++ .../oe_test_ltp_syscalls_madvise01.sh | 2 +- .../oe_test_ltp_syscalls_madvise02.sh | 2 +- .../oe_test_ltp_syscalls_madvise03.sh | 2 +- .../oe_test_ltp_syscalls_madvise05.sh | 2 +- .../oe_test_ltp_syscalls_madvise06.sh | 2 +- .../oe_test_ltp_syscalls_madvise07.sh | 2 +- .../oe_test_ltp_syscalls_madvise08.sh | 2 +- .../oe_test_ltp_syscalls_madvise09.sh | 2 +- .../oe_test_ltp_syscalls_madvise10.sh | 2 +- .../oe_test_ltp_syscalls_madvise11.sh | 2 +- .../oe_test_ltp_syscalls_mallinfo02.sh | 2 +- .../oe_test_ltp_syscalls_mallinfo2_01.sh | 2 +- .../oe_test_ltp_syscalls_mallopt01.sh | 2 +- .../oe_test_ltp_syscalls_mbind01.sh | 2 +- .../oe_test_ltp_syscalls_mbind02.sh | 2 +- .../oe_test_ltp_syscalls_mbind03.sh | 2 +- .../oe_test_ltp_syscalls_mbind04.sh | 2 +- .../oe_test_ltp_syscalls_membarrier01.sh | 2 +- .../oe_test_ltp_syscalls_memcmp01.sh | 2 +- .../oe_test_ltp_syscalls_memcpy01.sh | 2 +- .../oe_test_ltp_syscalls_memfd_create01.sh | 2 +- .../oe_test_ltp_syscalls_memfd_create02.sh | 2 +- .../oe_test_ltp_syscalls_memfd_create03.sh | 2 +- .../oe_test_ltp_syscalls_memfd_create04.sh | 2 +- .../oe_test_ltp_syscalls_memset01.sh | 2 +- .../oe_test_ltp_syscalls_migrate_pages01.sh | 2 +- .../oe_test_ltp_syscalls_migrate_pages02.sh | 2 +- .../oe_test_ltp_syscalls_migrate_pages03.sh | 2 +- .../oe_test_ltp_syscalls_mincore01.sh | 2 +- .../oe_test_ltp_syscalls_mincore02.sh | 2 +- .../oe_test_ltp_syscalls_mincore03.sh | 2 +- .../oe_test_ltp_syscalls_mincore04.sh | 2 +- .../oe_test_ltp_syscalls_mkdir02.sh | 2 +- .../oe_test_ltp_syscalls_mkdir03.sh | 2 +- .../oe_test_ltp_syscalls_mkdir04.sh | 2 +- .../oe_test_ltp_syscalls_mkdir05.sh | 2 +- .../oe_test_ltp_syscalls_mkdir09.sh | 2 +- .../oe_test_ltp_syscalls_mkdirat01.sh | 2 +- .../oe_test_ltp_syscalls_mkdirat02.sh | 2 +- .../oe_test_ltp_syscalls_mknod01.sh | 2 +- .../oe_test_ltp_syscalls_mknod02.sh | 2 +- .../oe_test_ltp_syscalls_mknod03.sh | 2 +- .../oe_test_ltp_syscalls_mknod04.sh | 2 +- .../oe_test_ltp_syscalls_mknod05.sh | 2 +- .../oe_test_ltp_syscalls_mknod06.sh | 2 +- .../oe_test_ltp_syscalls_mknod07.sh | 2 +- .../oe_test_ltp_syscalls_mknod08.sh | 2 +- .../oe_test_ltp_syscalls_mknod09.sh | 2 +- .../oe_test_ltp_syscalls_mknodat01.sh | 2 +- .../oe_test_ltp_syscalls_mknodat02.sh | 2 +- .../oe_test_ltp_syscalls_mlock01.sh | 2 +- .../oe_test_ltp_syscalls_mlock02.sh | 2 +- .../oe_test_ltp_syscalls_mlock03.sh | 2 +- .../oe_test_ltp_syscalls_mlock04.sh | 2 +- .../oe_test_ltp_syscalls_mlock05.sh | 64 +++ .../oe_test_ltp_syscalls_mlock201.sh | 2 +- .../oe_test_ltp_syscalls_mlock202.sh | 2 +- .../oe_test_ltp_syscalls_mlock203.sh | 2 +- .../oe_test_ltp_syscalls_mlockall01.sh | 2 +- .../oe_test_ltp_syscalls_mlockall02.sh | 2 +- .../oe_test_ltp_syscalls_mlockall03.sh | 2 +- .../oe_test_ltp_syscalls_mmap01.sh | 2 +- .../oe_test_ltp_syscalls_mmap02.sh | 2 +- .../oe_test_ltp_syscalls_mmap03.sh | 2 +- .../oe_test_ltp_syscalls_mmap04.sh | 2 +- .../oe_test_ltp_syscalls_mmap05.sh | 2 +- .../oe_test_ltp_syscalls_mmap06.sh | 2 +- .../oe_test_ltp_syscalls_mmap08.sh | 2 +- .../oe_test_ltp_syscalls_mmap09.sh | 2 +- .../oe_test_ltp_syscalls_mmap12.sh | 2 +- .../oe_test_ltp_syscalls_mmap13.sh | 2 +- .../oe_test_ltp_syscalls_mmap14.sh | 2 +- .../oe_test_ltp_syscalls_mmap15.sh | 2 +- .../oe_test_ltp_syscalls_mmap16.sh | 2 +- .../oe_test_ltp_syscalls_mmap17.sh | 2 +- .../oe_test_ltp_syscalls_mmap18.sh | 2 +- .../oe_test_ltp_syscalls_mmap19.sh | 2 +- .../oe_test_ltp_syscalls_mmap20.sh | 2 +- .../oe_test_ltp_syscalls_modify_ldt01.sh | 2 +- .../oe_test_ltp_syscalls_modify_ldt02.sh | 2 +- .../oe_test_ltp_syscalls_modify_ldt03.sh | 2 +- .../oe_test_ltp_syscalls_mount01.sh | 2 +- .../oe_test_ltp_syscalls_mount02.sh | 2 +- .../oe_test_ltp_syscalls_mount03.sh | 2 +- .../oe_test_ltp_syscalls_mount04.sh | 2 +- .../oe_test_ltp_syscalls_mount05.sh | 2 +- .../oe_test_ltp_syscalls_mount06.sh | 2 +- .../oe_test_ltp_syscalls_mount07.sh | 2 +- .../oe_test_ltp_syscalls_mount_setattr01.sh | 2 +- .../oe_test_ltp_syscalls_move_mount01.sh | 2 +- .../oe_test_ltp_syscalls_move_mount02.sh | 2 +- .../oe_test_ltp_syscalls_move_pages01.sh | 2 +- .../oe_test_ltp_syscalls_move_pages02.sh | 2 +- .../oe_test_ltp_syscalls_move_pages03.sh | 2 +- .../oe_test_ltp_syscalls_move_pages04.sh | 2 +- .../oe_test_ltp_syscalls_move_pages05.sh | 2 +- .../oe_test_ltp_syscalls_move_pages06.sh | 2 +- .../oe_test_ltp_syscalls_move_pages07.sh | 2 +- .../oe_test_ltp_syscalls_move_pages09.sh | 2 +- .../oe_test_ltp_syscalls_move_pages10.sh | 2 +- .../oe_test_ltp_syscalls_move_pages11.sh | 2 +- .../oe_test_ltp_syscalls_move_pages12.sh | 2 +- .../oe_test_ltp_syscalls_mprotect01.sh | 2 +- .../oe_test_ltp_syscalls_mprotect02.sh | 2 +- .../oe_test_ltp_syscalls_mprotect03.sh | 2 +- .../oe_test_ltp_syscalls_mprotect04.sh | 2 +- .../oe_test_ltp_syscalls_mprotect05.sh | 2 +- .../oe_test_ltp_syscalls_mq_notify01.sh | 2 +- .../oe_test_ltp_syscalls_mq_notify02.sh | 2 +- .../oe_test_ltp_syscalls_mq_notify03.sh | 2 +- .../oe_test_ltp_syscalls_mq_open01.sh | 2 +- .../oe_test_ltp_syscalls_mq_timedreceive01.sh | 2 +- .../oe_test_ltp_syscalls_mq_timedsend01.sh | 2 +- .../oe_test_ltp_syscalls_mq_unlink01.sh | 2 +- .../oe_test_ltp_syscalls_mremap01.sh | 2 +- .../oe_test_ltp_syscalls_mremap02.sh | 2 +- .../oe_test_ltp_syscalls_mremap03.sh | 2 +- .../oe_test_ltp_syscalls_mremap04.sh | 2 +- .../oe_test_ltp_syscalls_mremap05.sh | 2 +- .../oe_test_ltp_syscalls_mremap06.sh | 2 +- .../oe_test_ltp_syscalls_mseal01.sh | 64 +++ .../oe_test_ltp_syscalls_msgctl01.sh | 2 +- .../oe_test_ltp_syscalls_msgctl02.sh | 2 +- .../oe_test_ltp_syscalls_msgctl03.sh | 2 +- .../oe_test_ltp_syscalls_msgctl04.sh | 2 +- .../oe_test_ltp_syscalls_msgctl05.sh | 2 +- .../oe_test_ltp_syscalls_msgctl06.sh | 2 +- .../oe_test_ltp_syscalls_msgctl12.sh | 2 +- .../oe_test_ltp_syscalls_msgget01.sh | 2 +- .../oe_test_ltp_syscalls_msgget02.sh | 2 +- .../oe_test_ltp_syscalls_msgget03.sh | 2 +- .../oe_test_ltp_syscalls_msgget04.sh | 2 +- .../oe_test_ltp_syscalls_msgget05.sh | 2 +- .../oe_test_ltp_syscalls_msgrcv01.sh | 2 +- .../oe_test_ltp_syscalls_msgrcv02.sh | 2 +- .../oe_test_ltp_syscalls_msgrcv03.sh | 2 +- .../oe_test_ltp_syscalls_msgrcv05.sh | 2 +- .../oe_test_ltp_syscalls_msgrcv06.sh | 2 +- .../oe_test_ltp_syscalls_msgrcv07.sh | 2 +- .../oe_test_ltp_syscalls_msgrcv08.sh | 2 +- .../oe_test_ltp_syscalls_msgsnd01.sh | 2 +- .../oe_test_ltp_syscalls_msgsnd02.sh | 2 +- .../oe_test_ltp_syscalls_msgsnd05.sh | 2 +- .../oe_test_ltp_syscalls_msgsnd06.sh | 2 +- .../oe_test_ltp_syscalls_msgstress01.sh | 2 +- .../oe_test_ltp_syscalls_msync01.sh | 2 +- .../oe_test_ltp_syscalls_msync02.sh | 2 +- .../oe_test_ltp_syscalls_msync03.sh | 2 +- .../oe_test_ltp_syscalls_msync04.sh | 2 +- .../oe_test_ltp_syscalls_munlock01.sh | 2 +- .../oe_test_ltp_syscalls_munlock02.sh | 2 +- .../oe_test_ltp_syscalls_munlockall01.sh | 2 +- .../oe_test_ltp_syscalls_munmap01.sh | 2 +- .../oe_test_ltp_syscalls_munmap02.sh | 2 +- .../oe_test_ltp_syscalls_munmap03.sh | 2 +- ...e_test_ltp_syscalls_name_to_handle_at01.sh | 2 +- ...e_test_ltp_syscalls_name_to_handle_at02.sh | 2 +- .../oe_test_ltp_syscalls_nanosleep01.sh | 2 +- .../oe_test_ltp_syscalls_nanosleep02.sh | 2 +- .../oe_test_ltp_syscalls_nanosleep04.sh | 2 +- .../oe_test_ltp_syscalls_newuname01.sh | 2 +- .../oe_test_ltp_syscalls_nftw01.sh | 2 +- .../oe_test_ltp_syscalls_nftw6401.sh | 2 +- .../oe_test_ltp_syscalls_nice01.sh | 2 +- .../oe_test_ltp_syscalls_nice02.sh | 2 +- .../oe_test_ltp_syscalls_nice03.sh | 2 +- .../oe_test_ltp_syscalls_nice04.sh | 2 +- .../oe_test_ltp_syscalls_nice05.sh | 2 +- .../oe_test_ltp_syscalls_open01.sh | 2 +- .../oe_test_ltp_syscalls_open02.sh | 2 +- .../oe_test_ltp_syscalls_open03.sh | 2 +- .../oe_test_ltp_syscalls_open04.sh | 2 +- .../oe_test_ltp_syscalls_open06.sh | 2 +- .../oe_test_ltp_syscalls_open07.sh | 2 +- .../oe_test_ltp_syscalls_open08.sh | 2 +- .../oe_test_ltp_syscalls_open09.sh | 2 +- .../oe_test_ltp_syscalls_open10.sh | 2 +- .../oe_test_ltp_syscalls_open11.sh | 2 +- .../oe_test_ltp_syscalls_open12.sh | 2 +- .../oe_test_ltp_syscalls_open13.sh | 2 +- .../oe_test_ltp_syscalls_open14.sh | 2 +- .../oe_test_ltp_syscalls_open15.sh | 64 +++ ...e_test_ltp_syscalls_open_by_handle_at01.sh | 2 +- ...e_test_ltp_syscalls_open_by_handle_at02.sh | 2 +- .../oe_test_ltp_syscalls_open_tree01.sh | 2 +- .../oe_test_ltp_syscalls_open_tree02.sh | 2 +- .../oe_test_ltp_syscalls_openat01.sh | 2 +- .../oe_test_ltp_syscalls_openat02.sh | 2 +- .../oe_test_ltp_syscalls_openat03.sh | 2 +- .../oe_test_ltp_syscalls_openat04.sh | 2 +- .../oe_test_ltp_syscalls_openat201.sh | 2 +- .../oe_test_ltp_syscalls_openat202.sh | 2 +- .../oe_test_ltp_syscalls_openat203.sh | 2 +- .../oe_test_ltp_syscalls_pathconf01.sh | 2 +- .../oe_test_ltp_syscalls_pathconf02.sh | 2 +- .../oe_test_ltp_syscalls_pause01.sh | 2 +- .../oe_test_ltp_syscalls_pause02.sh | 2 +- .../oe_test_ltp_syscalls_pause03.sh | 2 +- .../oe_test_ltp_syscalls_perf_event_open01.sh | 2 +- .../oe_test_ltp_syscalls_perf_event_open02.sh | 2 +- .../oe_test_ltp_syscalls_perf_event_open03.sh | 2 +- .../oe_test_ltp_syscalls_personality01.sh | 2 +- .../oe_test_ltp_syscalls_personality02.sh | 2 +- .../oe_test_ltp_syscalls_pidfd_getfd01.sh | 2 +- .../oe_test_ltp_syscalls_pidfd_getfd02.sh | 2 +- .../oe_test_ltp_syscalls_pidfd_open01.sh | 2 +- .../oe_test_ltp_syscalls_pidfd_open02.sh | 2 +- .../oe_test_ltp_syscalls_pidfd_open03.sh | 2 +- .../oe_test_ltp_syscalls_pidfd_open04.sh | 2 +- ...e_test_ltp_syscalls_pidfd_send_signal01.sh | 2 +- ...e_test_ltp_syscalls_pidfd_send_signal02.sh | 2 +- ...e_test_ltp_syscalls_pidfd_send_signal03.sh | 2 +- .../oe_test_ltp_syscalls_pipe01.sh | 2 +- .../oe_test_ltp_syscalls_pipe02.sh | 2 +- .../oe_test_ltp_syscalls_pipe03.sh | 2 +- .../oe_test_ltp_syscalls_pipe04.sh | 2 +- .../oe_test_ltp_syscalls_pipe05.sh | 2 +- .../oe_test_ltp_syscalls_pipe06.sh | 2 +- .../oe_test_ltp_syscalls_pipe07.sh | 2 +- .../oe_test_ltp_syscalls_pipe08.sh | 2 +- .../oe_test_ltp_syscalls_pipe09.sh | 2 +- .../oe_test_ltp_syscalls_pipe10.sh | 2 +- .../oe_test_ltp_syscalls_pipe11.sh | 2 +- .../oe_test_ltp_syscalls_pipe12.sh | 2 +- .../oe_test_ltp_syscalls_pipe13.sh | 2 +- .../oe_test_ltp_syscalls_pipe14.sh | 2 +- .../oe_test_ltp_syscalls_pipe15.sh | 2 +- .../oe_test_ltp_syscalls_pipe2_01.sh | 2 +- .../oe_test_ltp_syscalls_pipe2_02.sh | 2 +- .../oe_test_ltp_syscalls_pipe2_04.sh | 2 +- .../oe_test_ltp_syscalls_pivot_root01.sh | 2 +- .../oe_test_ltp_syscalls_pkey01.sh | 2 +- .../oe_test_ltp_syscalls_poll01.sh | 2 +- .../oe_test_ltp_syscalls_poll02.sh | 2 +- .../oe_test_ltp_syscalls_posix_fadvise01.sh | 2 +- ...oe_test_ltp_syscalls_posix_fadvise01_64.sh | 2 +- .../oe_test_ltp_syscalls_posix_fadvise02.sh | 2 +- ...oe_test_ltp_syscalls_posix_fadvise02_64.sh | 2 +- .../oe_test_ltp_syscalls_posix_fadvise03.sh | 2 +- ...oe_test_ltp_syscalls_posix_fadvise03_64.sh | 2 +- .../oe_test_ltp_syscalls_posix_fadvise04.sh | 2 +- ...oe_test_ltp_syscalls_posix_fadvise04_64.sh | 2 +- .../oe_test_ltp_syscalls_ppoll01.sh | 2 +- .../oe_test_ltp_syscalls_prctl01.sh | 2 +- .../oe_test_ltp_syscalls_prctl02.sh | 2 +- .../oe_test_ltp_syscalls_prctl03.sh | 2 +- .../oe_test_ltp_syscalls_prctl05.sh | 2 +- .../oe_test_ltp_syscalls_prctl06.sh | 2 +- .../oe_test_ltp_syscalls_prctl07.sh | 2 +- .../oe_test_ltp_syscalls_prctl08.sh | 2 +- .../oe_test_ltp_syscalls_prctl09.sh | 2 +- .../oe_test_ltp_syscalls_prctl10.sh | 2 +- .../oe_test_ltp_syscalls_pread01.sh | 2 +- .../oe_test_ltp_syscalls_pread01_64.sh | 2 +- .../oe_test_ltp_syscalls_pread02.sh | 2 +- .../oe_test_ltp_syscalls_pread02_64.sh | 2 +- .../oe_test_ltp_syscalls_preadv01.sh | 2 +- .../oe_test_ltp_syscalls_preadv01_64.sh | 2 +- .../oe_test_ltp_syscalls_preadv02.sh | 2 +- .../oe_test_ltp_syscalls_preadv02_64.sh | 2 +- .../oe_test_ltp_syscalls_preadv03.sh | 2 +- .../oe_test_ltp_syscalls_preadv03_64.sh | 2 +- .../oe_test_ltp_syscalls_preadv201.sh | 2 +- .../oe_test_ltp_syscalls_preadv201_64.sh | 2 +- .../oe_test_ltp_syscalls_preadv202.sh | 2 +- .../oe_test_ltp_syscalls_preadv202_64.sh | 2 +- .../oe_test_ltp_syscalls_preadv203.sh | 2 +- .../oe_test_ltp_syscalls_preadv203_64.sh | 2 +- .../oe_test_ltp_syscalls_process_madvise01.sh | 2 +- ...oe_test_ltp_syscalls_process_vm_readv01.sh | 2 +- ...oe_test_ltp_syscalls_process_vm_readv02.sh | 2 +- ...oe_test_ltp_syscalls_process_vm_readv03.sh | 2 +- ...e_test_ltp_syscalls_process_vm_writev01.sh | 2 +- ...e_test_ltp_syscalls_process_vm_writev02.sh | 2 +- .../oe_test_ltp_syscalls_profil01.sh | 2 +- .../oe_test_ltp_syscalls_prot_hsymlinks.sh | 2 +- .../oe_test_ltp_syscalls_pselect01.sh | 2 +- .../oe_test_ltp_syscalls_pselect01_64.sh | 2 +- .../oe_test_ltp_syscalls_pselect02.sh | 2 +- .../oe_test_ltp_syscalls_pselect02_64.sh | 2 +- .../oe_test_ltp_syscalls_pselect03.sh | 2 +- .../oe_test_ltp_syscalls_pselect03_64.sh | 2 +- .../oe_test_ltp_syscalls_ptrace01.sh | 2 +- .../oe_test_ltp_syscalls_ptrace02.sh | 2 +- .../oe_test_ltp_syscalls_ptrace03.sh | 2 +- .../oe_test_ltp_syscalls_ptrace04.sh | 2 +- .../oe_test_ltp_syscalls_ptrace05.sh | 2 +- .../oe_test_ltp_syscalls_ptrace06.sh | 2 +- .../oe_test_ltp_syscalls_ptrace07.sh | 2 +- .../oe_test_ltp_syscalls_ptrace08.sh | 2 +- .../oe_test_ltp_syscalls_ptrace09.sh | 2 +- .../oe_test_ltp_syscalls_ptrace10.sh | 2 +- .../oe_test_ltp_syscalls_ptrace11.sh | 2 +- .../oe_test_ltp_syscalls_pwrite01.sh | 2 +- .../oe_test_ltp_syscalls_pwrite01_64.sh | 2 +- .../oe_test_ltp_syscalls_pwrite02.sh | 2 +- .../oe_test_ltp_syscalls_pwrite02_64.sh | 2 +- .../oe_test_ltp_syscalls_pwrite03.sh | 2 +- .../oe_test_ltp_syscalls_pwrite03_64.sh | 2 +- .../oe_test_ltp_syscalls_pwrite04.sh | 2 +- .../oe_test_ltp_syscalls_pwrite04_64.sh | 2 +- .../oe_test_ltp_syscalls_pwritev01.sh | 2 +- .../oe_test_ltp_syscalls_pwritev01_64.sh | 2 +- .../oe_test_ltp_syscalls_pwritev02.sh | 2 +- .../oe_test_ltp_syscalls_pwritev02_64.sh | 2 +- .../oe_test_ltp_syscalls_pwritev03.sh | 2 +- .../oe_test_ltp_syscalls_pwritev03_64.sh | 2 +- .../oe_test_ltp_syscalls_pwritev201.sh | 2 +- .../oe_test_ltp_syscalls_pwritev201_64.sh | 2 +- .../oe_test_ltp_syscalls_pwritev202.sh | 2 +- .../oe_test_ltp_syscalls_pwritev202_64.sh | 2 +- .../oe_test_ltp_syscalls_qmm01.sh | 2 +- .../oe_test_ltp_syscalls_quotactl01.sh | 2 +- .../oe_test_ltp_syscalls_quotactl02.sh | 2 +- .../oe_test_ltp_syscalls_quotactl03.sh | 2 +- .../oe_test_ltp_syscalls_quotactl04.sh | 2 +- .../oe_test_ltp_syscalls_quotactl05.sh | 2 +- .../oe_test_ltp_syscalls_quotactl06.sh | 2 +- .../oe_test_ltp_syscalls_quotactl07.sh | 2 +- .../oe_test_ltp_syscalls_quotactl08.sh | 2 +- .../oe_test_ltp_syscalls_quotactl09.sh | 2 +- .../oe_test_ltp_syscalls_read01.sh | 2 +- .../oe_test_ltp_syscalls_read02.sh | 2 +- .../oe_test_ltp_syscalls_read03.sh | 2 +- .../oe_test_ltp_syscalls_read04.sh | 2 +- .../oe_test_ltp_syscalls_readahead01.sh | 2 +- .../oe_test_ltp_syscalls_readahead02.sh | 2 +- .../oe_test_ltp_syscalls_readdir01.sh | 2 +- .../oe_test_ltp_syscalls_readdir21.sh | 2 +- .../oe_test_ltp_syscalls_readlink01.sh | 2 +- .../oe_test_ltp_syscalls_readlink01A.sh | 2 +- .../oe_test_ltp_syscalls_readlink03.sh | 2 +- .../oe_test_ltp_syscalls_readlinkat01.sh | 2 +- .../oe_test_ltp_syscalls_readlinkat02.sh | 2 +- .../oe_test_ltp_syscalls_readv01.sh | 2 +- .../oe_test_ltp_syscalls_readv02.sh | 2 +- .../oe_test_ltp_syscalls_realpath01.sh | 2 +- .../oe_test_ltp_syscalls_reboot01.sh | 2 +- .../oe_test_ltp_syscalls_reboot02.sh | 2 +- .../oe_test_ltp_syscalls_recv01.sh | 2 +- .../oe_test_ltp_syscalls_recvfrom01.sh | 2 +- .../oe_test_ltp_syscalls_recvmmsg01.sh | 2 +- .../oe_test_ltp_syscalls_recvmsg01.sh | 2 +- .../oe_test_ltp_syscalls_recvmsg02.sh | 2 +- .../oe_test_ltp_syscalls_recvmsg03.sh | 2 +- ...oe_test_ltp_syscalls_remap_file_pages01.sh | 2 +- ...oe_test_ltp_syscalls_remap_file_pages02.sh | 2 +- .../oe_test_ltp_syscalls_removexattr01.sh | 2 +- .../oe_test_ltp_syscalls_removexattr02.sh | 2 +- .../oe_test_ltp_syscalls_rename01.sh | 2 +- .../oe_test_ltp_syscalls_rename01A.sh | 2 +- .../oe_test_ltp_syscalls_rename03.sh | 2 +- .../oe_test_ltp_syscalls_rename04.sh | 2 +- .../oe_test_ltp_syscalls_rename05.sh | 2 +- .../oe_test_ltp_syscalls_rename06.sh | 2 +- .../oe_test_ltp_syscalls_rename07.sh | 2 +- .../oe_test_ltp_syscalls_rename08.sh | 2 +- .../oe_test_ltp_syscalls_rename09.sh | 2 +- .../oe_test_ltp_syscalls_rename10.sh | 2 +- .../oe_test_ltp_syscalls_rename11.sh | 2 +- .../oe_test_ltp_syscalls_rename12.sh | 2 +- .../oe_test_ltp_syscalls_rename13.sh | 2 +- .../oe_test_ltp_syscalls_rename14.sh | 2 +- .../oe_test_ltp_syscalls_renameat01.sh | 2 +- .../oe_test_ltp_syscalls_renameat201.sh | 2 +- .../oe_test_ltp_syscalls_renameat202.sh | 2 +- .../oe_test_ltp_syscalls_request_key01.sh | 2 +- .../oe_test_ltp_syscalls_request_key02.sh | 2 +- .../oe_test_ltp_syscalls_request_key03.sh | 2 +- .../oe_test_ltp_syscalls_request_key04.sh | 2 +- .../oe_test_ltp_syscalls_request_key05.sh | 2 +- .../oe_test_ltp_syscalls_rmdir01.sh | 2 +- .../oe_test_ltp_syscalls_rmdir02.sh | 2 +- .../oe_test_ltp_syscalls_rmdir03.sh | 2 +- .../oe_test_ltp_syscalls_rmdir03A.sh | 2 +- .../oe_test_ltp_syscalls_rt_sigaction01.sh | 2 +- .../oe_test_ltp_syscalls_rt_sigaction02.sh | 2 +- .../oe_test_ltp_syscalls_rt_sigaction03.sh | 2 +- .../oe_test_ltp_syscalls_rt_sigprocmask01.sh | 2 +- .../oe_test_ltp_syscalls_rt_sigprocmask02.sh | 2 +- .../oe_test_ltp_syscalls_rt_sigqueueinfo01.sh | 2 +- .../oe_test_ltp_syscalls_rt_sigsuspend01.sh | 2 +- .../oe_test_ltp_syscalls_rt_sigtimedwait01.sh | 2 +- ...e_test_ltp_syscalls_rt_tgsigqueueinfo01.sh | 2 +- .../oe_test_ltp_syscalls_sbrk01.sh | 2 +- .../oe_test_ltp_syscalls_sbrk02.sh | 2 +- .../oe_test_ltp_syscalls_sbrk03.sh | 2 +- ...t_ltp_syscalls_sched_get_priority_max01.sh | 2 +- ...t_ltp_syscalls_sched_get_priority_max02.sh | 2 +- ...t_ltp_syscalls_sched_get_priority_min01.sh | 2 +- ...t_ltp_syscalls_sched_get_priority_min02.sh | 2 +- ...e_test_ltp_syscalls_sched_getaffinity01.sh | 2 +- .../oe_test_ltp_syscalls_sched_getattr01.sh | 2 +- .../oe_test_ltp_syscalls_sched_getattr02.sh | 2 +- .../oe_test_ltp_syscalls_sched_getparam01.sh | 2 +- .../oe_test_ltp_syscalls_sched_getparam03.sh | 2 +- ..._test_ltp_syscalls_sched_getscheduler01.sh | 2 +- ..._test_ltp_syscalls_sched_getscheduler02.sh | 2 +- ...st_ltp_syscalls_sched_rr_get_interval01.sh | 2 +- ...st_ltp_syscalls_sched_rr_get_interval02.sh | 2 +- ...st_ltp_syscalls_sched_rr_get_interval03.sh | 2 +- ...e_test_ltp_syscalls_sched_setaffinity01.sh | 2 +- .../oe_test_ltp_syscalls_sched_setattr01.sh | 2 +- .../oe_test_ltp_syscalls_sched_setparam01.sh | 2 +- .../oe_test_ltp_syscalls_sched_setparam02.sh | 2 +- .../oe_test_ltp_syscalls_sched_setparam03.sh | 2 +- .../oe_test_ltp_syscalls_sched_setparam04.sh | 2 +- .../oe_test_ltp_syscalls_sched_setparam05.sh | 2 +- ..._test_ltp_syscalls_sched_setscheduler01.sh | 2 +- ..._test_ltp_syscalls_sched_setscheduler02.sh | 2 +- ..._test_ltp_syscalls_sched_setscheduler03.sh | 2 +- ..._test_ltp_syscalls_sched_setscheduler04.sh | 2 +- .../oe_test_ltp_syscalls_sched_yield01.sh | 2 +- .../oe_test_ltp_syscalls_seccomp01.sh | 64 +++ .../oe_test_ltp_syscalls_select01.sh | 2 +- .../oe_test_ltp_syscalls_select02.sh | 2 +- .../oe_test_ltp_syscalls_select03.sh | 2 +- .../oe_test_ltp_syscalls_select04.sh | 2 +- .../oe_test_ltp_syscalls_semctl01.sh | 2 +- .../oe_test_ltp_syscalls_semctl02.sh | 2 +- .../oe_test_ltp_syscalls_semctl03.sh | 2 +- .../oe_test_ltp_syscalls_semctl04.sh | 2 +- .../oe_test_ltp_syscalls_semctl05.sh | 2 +- .../oe_test_ltp_syscalls_semctl06.sh | 2 +- .../oe_test_ltp_syscalls_semctl07.sh | 2 +- .../oe_test_ltp_syscalls_semctl08.sh | 2 +- .../oe_test_ltp_syscalls_semctl09.sh | 2 +- .../oe_test_ltp_syscalls_semget01.sh | 2 +- .../oe_test_ltp_syscalls_semget02.sh | 2 +- .../oe_test_ltp_syscalls_semget05.sh | 2 +- .../oe_test_ltp_syscalls_semop01.sh | 2 +- .../oe_test_ltp_syscalls_semop02.sh | 2 +- .../oe_test_ltp_syscalls_semop03.sh | 2 +- .../oe_test_ltp_syscalls_semop04.sh | 2 +- .../oe_test_ltp_syscalls_semop05.sh | 2 +- .../oe_test_ltp_syscalls_send01.sh | 2 +- .../oe_test_ltp_syscalls_send02.sh | 2 +- .../oe_test_ltp_syscalls_sendfile02.sh | 2 +- .../oe_test_ltp_syscalls_sendfile02_64.sh | 2 +- .../oe_test_ltp_syscalls_sendfile03.sh | 2 +- .../oe_test_ltp_syscalls_sendfile03_64.sh | 2 +- .../oe_test_ltp_syscalls_sendfile04.sh | 2 +- .../oe_test_ltp_syscalls_sendfile04_64.sh | 2 +- .../oe_test_ltp_syscalls_sendfile05.sh | 2 +- .../oe_test_ltp_syscalls_sendfile05_64.sh | 2 +- .../oe_test_ltp_syscalls_sendfile06.sh | 2 +- .../oe_test_ltp_syscalls_sendfile06_64.sh | 2 +- .../oe_test_ltp_syscalls_sendfile07.sh | 2 +- .../oe_test_ltp_syscalls_sendfile07_64.sh | 2 +- .../oe_test_ltp_syscalls_sendfile08.sh | 2 +- .../oe_test_ltp_syscalls_sendfile08_64.sh | 2 +- .../oe_test_ltp_syscalls_sendfile09.sh | 2 +- .../oe_test_ltp_syscalls_sendfile09_64.sh | 2 +- .../oe_test_ltp_syscalls_sendmmsg01.sh | 2 +- .../oe_test_ltp_syscalls_sendmmsg02.sh | 2 +- .../oe_test_ltp_syscalls_sendmsg01.sh | 2 +- .../oe_test_ltp_syscalls_sendmsg02.sh | 2 +- .../oe_test_ltp_syscalls_sendmsg03.sh | 2 +- .../oe_test_ltp_syscalls_sendto01.sh | 2 +- .../oe_test_ltp_syscalls_sendto02.sh | 2 +- .../oe_test_ltp_syscalls_sendto03.sh | 2 +- .../oe_test_ltp_syscalls_set_mempolicy01.sh | 2 +- .../oe_test_ltp_syscalls_set_mempolicy02.sh | 2 +- .../oe_test_ltp_syscalls_set_mempolicy03.sh | 2 +- .../oe_test_ltp_syscalls_set_mempolicy04.sh | 2 +- .../oe_test_ltp_syscalls_set_robust_list01.sh | 2 +- .../oe_test_ltp_syscalls_set_thread_area01.sh | 2 +- .../oe_test_ltp_syscalls_set_tid_address01.sh | 2 +- .../oe_test_ltp_syscalls_setdomainname01.sh | 2 +- .../oe_test_ltp_syscalls_setdomainname02.sh | 2 +- .../oe_test_ltp_syscalls_setdomainname03.sh | 2 +- .../oe_test_ltp_syscalls_setegid01.sh | 2 +- .../oe_test_ltp_syscalls_setegid02.sh | 2 +- .../oe_test_ltp_syscalls_setfsgid01.sh | 2 +- .../oe_test_ltp_syscalls_setfsgid01_16.sh | 2 +- .../oe_test_ltp_syscalls_setfsgid02.sh | 2 +- .../oe_test_ltp_syscalls_setfsgid02_16.sh | 2 +- .../oe_test_ltp_syscalls_setfsgid03.sh | 2 +- .../oe_test_ltp_syscalls_setfsgid03_16.sh | 2 +- .../oe_test_ltp_syscalls_setfsuid01.sh | 2 +- .../oe_test_ltp_syscalls_setfsuid01_16.sh | 2 +- .../oe_test_ltp_syscalls_setfsuid02.sh | 2 +- .../oe_test_ltp_syscalls_setfsuid02_16.sh | 2 +- .../oe_test_ltp_syscalls_setfsuid03.sh | 2 +- .../oe_test_ltp_syscalls_setfsuid03_16.sh | 2 +- .../oe_test_ltp_syscalls_setfsuid04.sh | 2 +- .../oe_test_ltp_syscalls_setfsuid04_16.sh | 2 +- .../oe_test_ltp_syscalls_setgid01.sh | 2 +- .../oe_test_ltp_syscalls_setgid01_16.sh | 2 +- .../oe_test_ltp_syscalls_setgid02.sh | 2 +- .../oe_test_ltp_syscalls_setgid02_16.sh | 2 +- .../oe_test_ltp_syscalls_setgid03.sh | 2 +- .../oe_test_ltp_syscalls_setgid03_16.sh | 2 +- .../oe_test_ltp_syscalls_setgroups01.sh | 2 +- .../oe_test_ltp_syscalls_setgroups01_16.sh | 2 +- .../oe_test_ltp_syscalls_setgroups02.sh | 2 +- .../oe_test_ltp_syscalls_setgroups02_16.sh | 2 +- .../oe_test_ltp_syscalls_setgroups03.sh | 2 +- .../oe_test_ltp_syscalls_setgroups03_16.sh | 2 +- .../oe_test_ltp_syscalls_sethostname01.sh | 2 +- .../oe_test_ltp_syscalls_sethostname02.sh | 2 +- .../oe_test_ltp_syscalls_sethostname03.sh | 2 +- .../oe_test_ltp_syscalls_setitimer01.sh | 2 +- .../oe_test_ltp_syscalls_setitimer02.sh | 2 +- .../oe_test_ltp_syscalls_setns01.sh | 2 +- .../oe_test_ltp_syscalls_setns02.sh | 2 +- .../oe_test_ltp_syscalls_setpgid01.sh | 2 +- .../oe_test_ltp_syscalls_setpgid02.sh | 2 +- .../oe_test_ltp_syscalls_setpgid03.sh | 2 +- .../oe_test_ltp_syscalls_setpgrp01.sh | 2 +- .../oe_test_ltp_syscalls_setpgrp02.sh | 2 +- .../oe_test_ltp_syscalls_setpriority01.sh | 2 +- .../oe_test_ltp_syscalls_setpriority02.sh | 2 +- .../oe_test_ltp_syscalls_setregid01.sh | 2 +- .../oe_test_ltp_syscalls_setregid01_16.sh | 2 +- .../oe_test_ltp_syscalls_setregid02.sh | 2 +- .../oe_test_ltp_syscalls_setregid02_16.sh | 2 +- .../oe_test_ltp_syscalls_setregid03.sh | 2 +- .../oe_test_ltp_syscalls_setregid03_16.sh | 2 +- .../oe_test_ltp_syscalls_setregid04.sh | 2 +- .../oe_test_ltp_syscalls_setregid04_16.sh | 2 +- .../oe_test_ltp_syscalls_setresgid01.sh | 2 +- .../oe_test_ltp_syscalls_setresgid01_16.sh | 2 +- .../oe_test_ltp_syscalls_setresgid02.sh | 2 +- .../oe_test_ltp_syscalls_setresgid02_16.sh | 2 +- .../oe_test_ltp_syscalls_setresgid03.sh | 2 +- .../oe_test_ltp_syscalls_setresgid03_16.sh | 2 +- .../oe_test_ltp_syscalls_setresgid04.sh | 2 +- .../oe_test_ltp_syscalls_setresgid04_16.sh | 2 +- .../oe_test_ltp_syscalls_setresuid01.sh | 2 +- .../oe_test_ltp_syscalls_setresuid01_16.sh | 2 +- .../oe_test_ltp_syscalls_setresuid02.sh | 2 +- .../oe_test_ltp_syscalls_setresuid02_16.sh | 2 +- .../oe_test_ltp_syscalls_setresuid03.sh | 2 +- .../oe_test_ltp_syscalls_setresuid03_16.sh | 2 +- .../oe_test_ltp_syscalls_setresuid04.sh | 2 +- .../oe_test_ltp_syscalls_setresuid04_16.sh | 2 +- .../oe_test_ltp_syscalls_setresuid05.sh | 2 +- .../oe_test_ltp_syscalls_setresuid05_16.sh | 2 +- .../oe_test_ltp_syscalls_setreuid01.sh | 2 +- .../oe_test_ltp_syscalls_setreuid01_16.sh | 2 +- .../oe_test_ltp_syscalls_setreuid02.sh | 2 +- .../oe_test_ltp_syscalls_setreuid02_16.sh | 2 +- .../oe_test_ltp_syscalls_setreuid03.sh | 2 +- .../oe_test_ltp_syscalls_setreuid03_16.sh | 2 +- .../oe_test_ltp_syscalls_setreuid04.sh | 2 +- .../oe_test_ltp_syscalls_setreuid04_16.sh | 2 +- .../oe_test_ltp_syscalls_setreuid05.sh | 2 +- .../oe_test_ltp_syscalls_setreuid05_16.sh | 2 +- .../oe_test_ltp_syscalls_setreuid06.sh | 2 +- .../oe_test_ltp_syscalls_setreuid06_16.sh | 2 +- .../oe_test_ltp_syscalls_setreuid07.sh | 2 +- .../oe_test_ltp_syscalls_setreuid07_16.sh | 2 +- .../oe_test_ltp_syscalls_setrlimit01.sh | 2 +- .../oe_test_ltp_syscalls_setrlimit02.sh | 2 +- .../oe_test_ltp_syscalls_setrlimit03.sh | 2 +- .../oe_test_ltp_syscalls_setrlimit04.sh | 2 +- .../oe_test_ltp_syscalls_setrlimit05.sh | 2 +- .../oe_test_ltp_syscalls_setrlimit06.sh | 2 +- .../oe_test_ltp_syscalls_setsid01.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt01.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt02.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt03.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt04.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt05.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt06.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt07.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt08.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt09.sh | 2 +- .../oe_test_ltp_syscalls_setsockopt10.sh | 2 +- .../oe_test_ltp_syscalls_settimeofday01.sh | 2 +- .../oe_test_ltp_syscalls_settimeofday02.sh | 2 +- .../oe_test_ltp_syscalls_setuid01.sh | 2 +- .../oe_test_ltp_syscalls_setuid01_16.sh | 2 +- .../oe_test_ltp_syscalls_setuid03.sh | 2 +- .../oe_test_ltp_syscalls_setuid03_16.sh | 2 +- .../oe_test_ltp_syscalls_setuid04.sh | 2 +- .../oe_test_ltp_syscalls_setuid04_16.sh | 2 +- .../oe_test_ltp_syscalls_setxattr01.sh | 2 +- .../oe_test_ltp_syscalls_setxattr02.sh | 2 +- .../oe_test_ltp_syscalls_setxattr03.sh | 2 +- .../oe_test_ltp_syscalls_sgetmask01.sh | 2 +- .../oe_test_ltp_syscalls_shmat01.sh | 2 +- .../oe_test_ltp_syscalls_shmat02.sh | 2 +- .../oe_test_ltp_syscalls_shmat03.sh | 2 +- .../oe_test_ltp_syscalls_shmat04.sh | 64 +++ .../oe_test_ltp_syscalls_shmctl01.sh | 2 +- .../oe_test_ltp_syscalls_shmctl02.sh | 2 +- .../oe_test_ltp_syscalls_shmctl03.sh | 2 +- .../oe_test_ltp_syscalls_shmctl04.sh | 2 +- .../oe_test_ltp_syscalls_shmctl05.sh | 2 +- .../oe_test_ltp_syscalls_shmctl06.sh | 2 +- .../oe_test_ltp_syscalls_shmctl07.sh | 2 +- .../oe_test_ltp_syscalls_shmctl08.sh | 2 +- .../oe_test_ltp_syscalls_shmdt01.sh | 2 +- .../oe_test_ltp_syscalls_shmdt02.sh | 2 +- .../oe_test_ltp_syscalls_shmget02.sh | 2 +- .../oe_test_ltp_syscalls_shmget03.sh | 2 +- .../oe_test_ltp_syscalls_shmget04.sh | 2 +- .../oe_test_ltp_syscalls_shmget05.sh | 2 +- .../oe_test_ltp_syscalls_shmget06.sh | 2 +- .../oe_test_ltp_syscalls_shutdown01.sh | 64 +++ .../oe_test_ltp_syscalls_shutdown02.sh | 64 +++ .../oe_test_ltp_syscalls_sigaction01.sh | 2 +- .../oe_test_ltp_syscalls_sigaction02.sh | 2 +- .../oe_test_ltp_syscalls_sigaltstack01.sh | 2 +- .../oe_test_ltp_syscalls_sigaltstack02.sh | 2 +- .../oe_test_ltp_syscalls_sighold02.sh | 2 +- .../oe_test_ltp_syscalls_signal01.sh | 2 +- .../oe_test_ltp_syscalls_signal02.sh | 2 +- .../oe_test_ltp_syscalls_signal03.sh | 2 +- .../oe_test_ltp_syscalls_signal04.sh | 2 +- .../oe_test_ltp_syscalls_signal05.sh | 2 +- .../oe_test_ltp_syscalls_signal06.sh | 2 +- .../oe_test_ltp_syscalls_signalfd01.sh | 2 +- .../oe_test_ltp_syscalls_signalfd4_01.sh | 2 +- .../oe_test_ltp_syscalls_signalfd4_02.sh | 2 +- .../oe_test_ltp_syscalls_sigpending02.sh | 2 +- .../oe_test_ltp_syscalls_sigprocmask01.sh | 2 +- .../oe_test_ltp_syscalls_sigrelse01.sh | 2 +- .../oe_test_ltp_syscalls_sigsuspend01.sh | 2 +- .../oe_test_ltp_syscalls_sigtimedwait01.sh | 2 +- .../oe_test_ltp_syscalls_sigwait01.sh | 2 +- .../oe_test_ltp_syscalls_sigwaitinfo01.sh | 2 +- .../oe_test_ltp_syscalls_socket01.sh | 2 +- .../oe_test_ltp_syscalls_socket02.sh | 2 +- .../oe_test_ltp_syscalls_socketcall01.sh | 2 +- .../oe_test_ltp_syscalls_socketcall02.sh | 2 +- .../oe_test_ltp_syscalls_socketcall03.sh | 2 +- .../oe_test_ltp_syscalls_socketpair01.sh | 2 +- .../oe_test_ltp_syscalls_socketpair02.sh | 2 +- .../oe_test_ltp_syscalls_sockioctl01.sh | 2 +- .../oe_test_ltp_syscalls_splice01.sh | 2 +- .../oe_test_ltp_syscalls_splice02.sh | 2 +- .../oe_test_ltp_syscalls_splice03.sh | 2 +- .../oe_test_ltp_syscalls_splice04.sh | 2 +- .../oe_test_ltp_syscalls_splice05.sh | 2 +- .../oe_test_ltp_syscalls_splice06.sh | 2 +- .../oe_test_ltp_syscalls_splice07.sh | 64 +++ .../oe_test_ltp_syscalls_splice08.sh | 64 +++ .../oe_test_ltp_syscalls_splice09.sh | 64 +++ .../oe_test_ltp_syscalls_ssetmask01.sh | 2 +- .../oe_test_ltp_syscalls_stat01.sh | 2 +- .../oe_test_ltp_syscalls_stat01_64.sh | 2 +- .../oe_test_ltp_syscalls_stat02.sh | 2 +- .../oe_test_ltp_syscalls_stat02_64.sh | 2 +- .../oe_test_ltp_syscalls_stat03.sh | 2 +- .../oe_test_ltp_syscalls_stat03_64.sh | 2 +- .../oe_test_ltp_syscalls_stat04.sh | 8 +- .../oe_test_ltp_syscalls_stat04_64.sh | 8 +- .../oe_test_ltp_syscalls_statfs01.sh | 2 +- .../oe_test_ltp_syscalls_statfs01_64.sh | 2 +- .../oe_test_ltp_syscalls_statfs02.sh | 2 +- .../oe_test_ltp_syscalls_statfs02_64.sh | 2 +- .../oe_test_ltp_syscalls_statfs03.sh | 2 +- .../oe_test_ltp_syscalls_statfs03_64.sh | 2 +- .../oe_test_ltp_syscalls_statvfs01.sh | 2 +- .../oe_test_ltp_syscalls_statvfs02.sh | 2 +- .../oe_test_ltp_syscalls_statx01.sh | 2 +- .../oe_test_ltp_syscalls_statx02.sh | 2 +- .../oe_test_ltp_syscalls_statx03.sh | 2 +- .../oe_test_ltp_syscalls_statx04.sh | 2 +- .../oe_test_ltp_syscalls_statx05.sh | 2 +- .../oe_test_ltp_syscalls_statx06.sh | 2 +- .../oe_test_ltp_syscalls_statx07.sh | 2 +- .../oe_test_ltp_syscalls_statx08.sh | 2 +- .../oe_test_ltp_syscalls_statx09.sh | 2 +- .../oe_test_ltp_syscalls_statx10.sh | 2 +- .../oe_test_ltp_syscalls_statx11.sh | 2 +- .../oe_test_ltp_syscalls_statx12.sh | 2 +- .../oe_test_ltp_syscalls_stime01.sh | 2 +- .../oe_test_ltp_syscalls_stime02.sh | 2 +- .../oe_test_ltp_syscalls_string01.sh | 2 +- .../oe_test_ltp_syscalls_swapoff01.sh | 2 +- .../oe_test_ltp_syscalls_swapoff02.sh | 2 +- .../oe_test_ltp_syscalls_swapon01.sh | 2 +- .../oe_test_ltp_syscalls_swapon02.sh | 2 +- .../oe_test_ltp_syscalls_swapon03.sh | 2 +- .../oe_test_ltp_syscalls_switch01.sh | 2 +- .../oe_test_ltp_syscalls_symlink01.sh | 2 +- .../oe_test_ltp_syscalls_symlink02.sh | 2 +- .../oe_test_ltp_syscalls_symlink03.sh | 2 +- .../oe_test_ltp_syscalls_symlink04.sh | 2 +- .../oe_test_ltp_syscalls_symlinkat01.sh | 2 +- .../oe_test_ltp_syscalls_sync01.sh | 2 +- .../oe_test_ltp_syscalls_sync_file_range01.sh | 2 +- .../oe_test_ltp_syscalls_sync_file_range02.sh | 2 +- .../oe_test_ltp_syscalls_syncfs01.sh | 2 +- .../oe_test_ltp_syscalls_syscall01.sh | 2 +- .../oe_test_ltp_syscalls_sysconf01.sh | 2 +- .../oe_test_ltp_syscalls_sysctl01.sh | 2 +- .../oe_test_ltp_syscalls_sysctl03.sh | 2 +- .../oe_test_ltp_syscalls_sysctl04.sh | 2 +- .../oe_test_ltp_syscalls_sysfs01.sh | 2 +- .../oe_test_ltp_syscalls_sysfs02.sh | 2 +- .../oe_test_ltp_syscalls_sysfs03.sh | 2 +- .../oe_test_ltp_syscalls_sysfs04.sh | 2 +- .../oe_test_ltp_syscalls_sysfs05.sh | 2 +- .../oe_test_ltp_syscalls_sysinfo01.sh | 2 +- .../oe_test_ltp_syscalls_sysinfo02.sh | 2 +- .../oe_test_ltp_syscalls_sysinfo03.sh | 2 +- .../oe_test_ltp_syscalls_syslog11.sh | 2 +- .../oe_test_ltp_syscalls_syslog12.sh | 2 +- .../oe_test_ltp_syscalls_tee01.sh | 2 +- .../oe_test_ltp_syscalls_tee02.sh | 2 +- .../oe_test_ltp_syscalls_tgkill01.sh | 2 +- .../oe_test_ltp_syscalls_tgkill02.sh | 2 +- .../oe_test_ltp_syscalls_tgkill03.sh | 2 +- .../oe_test_ltp_syscalls_time01.sh | 2 +- .../oe_test_ltp_syscalls_timer_create01.sh | 2 +- .../oe_test_ltp_syscalls_timer_create02.sh | 2 +- .../oe_test_ltp_syscalls_timer_create03.sh | 2 +- .../oe_test_ltp_syscalls_timer_delete01.sh | 2 +- .../oe_test_ltp_syscalls_timer_delete02.sh | 2 +- ...oe_test_ltp_syscalls_timer_getoverrun01.sh | 2 +- .../oe_test_ltp_syscalls_timer_gettime01.sh | 2 +- .../oe_test_ltp_syscalls_timer_settime01.sh | 2 +- .../oe_test_ltp_syscalls_timer_settime02.sh | 2 +- .../oe_test_ltp_syscalls_timer_settime03.sh | 2 +- .../oe_test_ltp_syscalls_timerfd01.sh | 2 +- .../oe_test_ltp_syscalls_timerfd02.sh | 2 +- .../oe_test_ltp_syscalls_timerfd04.sh | 2 +- .../oe_test_ltp_syscalls_timerfd_create01.sh | 2 +- .../oe_test_ltp_syscalls_timerfd_gettime01.sh | 2 +- .../oe_test_ltp_syscalls_timerfd_settime01.sh | 2 +- .../oe_test_ltp_syscalls_timerfd_settime02.sh | 2 +- .../oe_test_ltp_syscalls_times01.sh | 2 +- .../oe_test_ltp_syscalls_times03.sh | 2 +- .../oe_test_ltp_syscalls_tkill01.sh | 2 +- .../oe_test_ltp_syscalls_tkill02.sh | 2 +- .../oe_test_ltp_syscalls_truncate02.sh | 2 +- .../oe_test_ltp_syscalls_truncate02_64.sh | 2 +- .../oe_test_ltp_syscalls_truncate03.sh | 2 +- .../oe_test_ltp_syscalls_truncate03_64.sh | 2 +- .../oe_test_ltp_syscalls_ulimit01.sh | 2 +- .../oe_test_ltp_syscalls_umask01.sh | 2 +- .../oe_test_ltp_syscalls_umount01.sh | 2 +- .../oe_test_ltp_syscalls_umount02.sh | 2 +- .../oe_test_ltp_syscalls_umount03.sh | 2 +- .../oe_test_ltp_syscalls_umount2_01.sh | 2 +- .../oe_test_ltp_syscalls_umount2_02.sh | 2 +- .../oe_test_ltp_syscalls_uname01.sh | 2 +- .../oe_test_ltp_syscalls_uname02.sh | 2 +- .../oe_test_ltp_syscalls_uname04.sh | 2 +- .../oe_test_ltp_syscalls_unlink01.sh | 2 +- .../oe_test_ltp_syscalls_unlink05.sh | 2 +- .../oe_test_ltp_syscalls_unlink07.sh | 2 +- .../oe_test_ltp_syscalls_unlink08.sh | 2 +- .../oe_test_ltp_syscalls_unlink09.sh | 64 +++ .../oe_test_ltp_syscalls_unlink10.sh | 64 +++ .../oe_test_ltp_syscalls_unlinkat01.sh | 2 +- .../oe_test_ltp_syscalls_unshare01.sh | 2 +- .../oe_test_ltp_syscalls_unshare02.sh | 2 +- .../oe_test_ltp_syscalls_userfaultfd01.sh | 2 +- .../oe_test_ltp_syscalls_ustat01.sh | 2 +- .../oe_test_ltp_syscalls_ustat02.sh | 2 +- .../oe_test_ltp_syscalls_utime01.sh | 2 +- .../oe_test_ltp_syscalls_utime02.sh | 2 +- .../oe_test_ltp_syscalls_utime03.sh | 2 +- .../oe_test_ltp_syscalls_utime04.sh | 2 +- .../oe_test_ltp_syscalls_utime05.sh | 2 +- .../oe_test_ltp_syscalls_utime06.sh | 2 +- .../oe_test_ltp_syscalls_utime07.sh | 64 +++ .../oe_test_ltp_syscalls_utimensat01.sh | 2 +- .../oe_test_ltp_syscalls_utimes01.sh | 2 +- .../oe_test_ltp_syscalls_vfork01.sh | 2 +- .../oe_test_ltp_syscalls_vfork02.sh | 2 +- .../oe_test_ltp_syscalls_vhangup01.sh | 2 +- .../oe_test_ltp_syscalls_vhangup02.sh | 2 +- .../oe_test_ltp_syscalls_vmsplice01.sh | 2 +- .../oe_test_ltp_syscalls_vmsplice02.sh | 2 +- .../oe_test_ltp_syscalls_vmsplice03.sh | 2 +- .../oe_test_ltp_syscalls_vmsplice04.sh | 2 +- .../oe_test_ltp_syscalls_wait01.sh | 2 +- .../oe_test_ltp_syscalls_wait02.sh | 2 +- .../oe_test_ltp_syscalls_wait401.sh | 2 +- .../oe_test_ltp_syscalls_wait402.sh | 2 +- .../oe_test_ltp_syscalls_wait403.sh | 2 +- .../oe_test_ltp_syscalls_waitid01.sh | 2 +- .../oe_test_ltp_syscalls_waitid02.sh | 2 +- .../oe_test_ltp_syscalls_waitid03.sh | 2 +- .../oe_test_ltp_syscalls_waitid04.sh | 2 +- .../oe_test_ltp_syscalls_waitid05.sh | 2 +- .../oe_test_ltp_syscalls_waitid06.sh | 2 +- .../oe_test_ltp_syscalls_waitid07.sh | 2 +- .../oe_test_ltp_syscalls_waitid08.sh | 2 +- .../oe_test_ltp_syscalls_waitid09.sh | 2 +- .../oe_test_ltp_syscalls_waitid10.sh | 2 +- .../oe_test_ltp_syscalls_waitid11.sh | 2 +- .../oe_test_ltp_syscalls_waitpid01.sh | 2 +- .../oe_test_ltp_syscalls_waitpid03.sh | 2 +- .../oe_test_ltp_syscalls_waitpid04.sh | 2 +- .../oe_test_ltp_syscalls_waitpid06.sh | 2 +- .../oe_test_ltp_syscalls_waitpid07.sh | 2 +- .../oe_test_ltp_syscalls_waitpid08.sh | 2 +- .../oe_test_ltp_syscalls_waitpid09.sh | 2 +- .../oe_test_ltp_syscalls_waitpid10.sh | 2 +- .../oe_test_ltp_syscalls_waitpid11.sh | 2 +- .../oe_test_ltp_syscalls_waitpid12.sh | 2 +- .../oe_test_ltp_syscalls_waitpid13.sh | 2 +- .../oe_test_ltp_syscalls_write01.sh | 2 +- .../oe_test_ltp_syscalls_write02.sh | 2 +- .../oe_test_ltp_syscalls_write03.sh | 2 +- .../oe_test_ltp_syscalls_write04.sh | 2 +- .../oe_test_ltp_syscalls_write05.sh | 2 +- .../oe_test_ltp_syscalls_write06.sh | 2 +- .../oe_test_ltp_syscalls_writev01.sh | 2 +- .../oe_test_ltp_syscalls_writev02.sh | 2 +- .../oe_test_ltp_syscalls_writev03.sh | 2 +- .../oe_test_ltp_syscalls_writev05.sh | 2 +- .../oe_test_ltp_syscalls_writev06.sh | 2 +- .../oe_test_ltp_syscalls_writev07.sh | 2 +- .../oe_test_ltp_tpm_tools_tpm01.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpm02.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpm03.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpm04.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpm05.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpm06.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpm07.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpmtoken01.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpmtoken02.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpmtoken03.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpmtoken04.sh | 64 +++ .../oe_test_ltp_tpm_tools_tpmtoken05.sh | 64 +++ .../oe_test_ltp_tracing_dynamic_debug01.sh | 64 +++ .../oe_test_ltp_tracing_ftrace-stress-test.sh | 64 +++ ...oe_test_ltp_tracing_ftrace_regression01.sh | 64 +++ ...oe_test_ltp_tracing_ftrace_regression02.sh | 64 +++ .../oe_test_ltp_tracing_pt_disable_branch.sh | 64 +++ .../oe_test_ltp_tracing_pt_ex_kernel.sh | 64 +++ .../oe_test_ltp_tracing_pt_ex_user.sh | 64 +++ ...oe_test_ltp_tracing_pt_full_trace_basic.sh | 64 +++ ...est_ltp_tracing_pt_snapshot_trace_basic.sh | 64 +++ .../ltp_uevent/oe_test_ltp_uevent_uevent01.sh | 2 +- .../ltp_uevent/oe_test_ltp_uevent_uevent02.sh | 2 +- .../ltp_uevent/oe_test_ltp_uevent_uevent03.sh | 2 +- .../oe_test_ltp_watchqueue_wqueue01.sh | 2 +- .../oe_test_ltp_watchqueue_wqueue02.sh | 2 +- .../oe_test_ltp_watchqueue_wqueue03.sh | 2 +- .../oe_test_ltp_watchqueue_wqueue04.sh | 2 +- .../oe_test_ltp_watchqueue_wqueue05.sh | 2 +- .../oe_test_ltp_watchqueue_wqueue06.sh | 2 +- .../oe_test_ltp_watchqueue_wqueue07.sh | 2 +- .../oe_test_ltp_watchqueue_wqueue08.sh | 2 +- .../oe_test_ltp_watchqueue_wqueue09.sh | 2 +- 4120 files changed, 114635 insertions(+), 2457 deletions(-) create mode 100644 suite2cases/ltp_Makefile.json create mode 100644 suite2cases/ltp_capability.json create mode 100644 suite2cases/ltp_crashme.json create mode 100644 suite2cases/ltp_dma_thread_diotest.json create mode 100644 suite2cases/ltp_fs_readonly.json create mode 100644 suite2cases/ltp_ima.json create mode 100644 suite2cases/ltp_kvm.json create mode 100644 suite2cases/ltp_ltp-aio-stress.json create mode 100644 suite2cases/ltp_ltp-aiodio_part1.json create mode 100644 suite2cases/ltp_ltp-aiodio_part2.json create mode 100644 suite2cases/ltp_ltp-aiodio_part3.json create mode 100644 suite2cases/ltp_ltp-aiodio_part4.json create mode 100644 suite2cases/ltp_net_features.json create mode 100644 suite2cases/ltp_net_ipv6.json create mode 100644 suite2cases/ltp_net_multicast.json create mode 100644 suite2cases/ltp_net_nfs.json create mode 100644 suite2cases/ltp_net_rpc_tests.json create mode 100644 suite2cases/ltp_net_sctp.json create mode 100644 suite2cases/ltp_net_stress_appl.json create mode 100644 suite2cases/ltp_net_stress_broken_ip.json create mode 100644 suite2cases/ltp_net_stress_interface.json create mode 100644 suite2cases/ltp_net_stress_ipsec_dccp.json create mode 100644 suite2cases/ltp_net_stress_ipsec_icmp.json create mode 100644 suite2cases/ltp_net_stress_ipsec_sctp.json create mode 100644 suite2cases/ltp_net_stress_ipsec_tcp.json create mode 100644 suite2cases/ltp_net_stress_ipsec_udp.json create mode 100644 suite2cases/ltp_net_stress_multicast.json create mode 100644 suite2cases/ltp_net_stress_route.json create mode 100644 suite2cases/ltp_net_tcp_cmds.json create mode 100644 suite2cases/ltp_net_tirpc_tests.json create mode 100644 suite2cases/ltp_numa.json create mode 100644 suite2cases/ltp_power_management_tests_exclusive.json create mode 100644 suite2cases/ltp_s390x_tests.json create mode 100644 suite2cases/ltp_scsi_debug_part1.json create mode 100644 suite2cases/ltp_smack.json create mode 100644 suite2cases/ltp_smoketest.json create mode 100644 suite2cases/ltp_staging.json create mode 100644 suite2cases/ltp_syscalls-ipc.json create mode 100644 suite2cases/ltp_tpm_tools.json create mode 100644 suite2cases/ltp_tracing.json create mode 100644 testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_DIR.sh create mode 100644 testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_MODE.sh create mode 100644 testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_TARGETS.sh create mode 100644 testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_MAKE_TARGETS.sh create mode 100644 testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_UNWANTED_FILES.sh create mode 100644 testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_include.sh create mode 100644 testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_top_srcdir.sh create mode 100644 testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_cap_bounds.sh create mode 100644 testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps01.sh create mode 100644 testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps02.sh create mode 100644 testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps03.sh create mode 100644 testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_filecaps.sh create mode 100644 testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_crash01.sh create mode 100644 testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_crash02.sh create mode 100644 testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_f00f.sh create mode 100644 testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest1.sh create mode 100644 testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest2.sh create mode 100644 testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest3.sh create mode 100644 testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest4.sh create mode 100644 testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest5.sh create mode 100644 testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest6.sh create mode 100644 testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest7.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind01.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind02.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind03.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind04.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind05.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind06.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind07.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind08.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind09.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind10.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind11.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind12.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind13.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind14.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind15.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind16.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind17.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind18.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind19.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind20.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind21.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind22.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind23.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind24.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind25.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind26.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind27.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind28.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind29.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind30.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind31.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind32.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind33.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind34.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind35.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind36.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind37.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind38.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind39.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind40.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind41.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind42.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind43.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind44.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind45.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind46.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind47.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind48.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind49.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind50.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind51.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind52.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind53.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind54.sh create mode 100644 testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind55.sh create mode 100644 testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_evm_overlay.sh create mode 100644 testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_conditionals.sh create mode 100644 testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_kexec.sh create mode 100644 testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_keys.sh create mode 100644 testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_measurements.sh create mode 100644 testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_policy.sh create mode 100644 testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_selinux.sh create mode 100644 testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_tpm.sh create mode 100644 testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_violations.sh create mode 100644 testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_aslr01.sh create mode 100644 testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_pagefault01.sh create mode 100644 testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm01.sh create mode 100644 testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm02.sh create mode 100644 testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm03.sh create mode 100644 testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm04.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1000.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1001.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1002.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1003.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1004.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1005.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1006.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1007.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1008.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1009.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1010.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1011.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1012.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1013.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1014.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1015.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1016.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1017.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1018.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1019.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1020.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1021.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1022.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1023.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1024.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1025.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1026.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1027.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1028.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1029.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1030.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1031.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1032.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1033.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1034.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1035.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1036.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1037.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1038.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1039.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1040.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1041.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1042.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1043.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1044.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1045.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1046.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1047.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1048.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1049.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1050.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1051.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1052.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1053.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD001.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD002.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD003.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD004.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD005.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD006.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD007.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD008.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD009.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD010.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD011.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD012.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD013.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD014.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD015.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD016.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD017.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD018.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD019.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD020.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD021.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD022.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD023.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD024.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD025.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD026.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD027.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD028.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD029.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD030.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD031.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD032.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD033.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD034.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD035.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD036.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD037.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD038.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD039.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD040.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD041.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD042.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD043.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD044.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD045.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD046.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD047.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD048.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD049.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD050.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD051.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD052.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD053.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD054.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD055.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD056.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD057.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD058.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD059.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD060.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD061.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD062.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD063.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD064.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD065.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD066.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD067.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD068.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD069.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD070.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD071.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD072.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD073.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD074.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD075.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD076.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD077.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD078.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD079.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD080.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD081.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD082.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD083.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD084.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD085.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD086.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD087.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD088.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD089.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD090.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD091.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD092.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD093.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD094.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD095.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD096.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD097.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD098.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD099.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD100.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD101.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD102.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD103.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD104.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD105.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD106.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD107.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD108.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD109.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD110.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD111.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD112.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD113.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD114.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD115.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD116.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD117.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD118.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD119.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD120.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD121.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD122.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD123.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD124.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD125.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD126.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD127.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD128.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD129.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD130.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD131.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD132.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD133.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD134.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD135.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD136.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD137.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD138.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD139.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD140.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP000.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP001.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP002.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP003.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP004.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP005.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP006.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP007.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP008.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP009.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP010.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP011.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP012.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP013.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP014.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP015.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP016.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP017.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP018.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP019.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP020.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP021.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP022.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP023.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP024.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP025.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP026.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP027.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP028.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP029.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP030.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP031.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP032.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP033.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP034.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP035.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP036.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP037.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP038.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP039.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP040.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP041.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP042.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP043.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP044.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP045.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP046.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP047.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP048.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP049.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP050.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP051.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP052.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP053.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP054.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP055.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP056.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP057.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP058.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP059.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP060.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP061.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP062.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP063.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP064.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP065.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP066.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP067.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP068.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP069.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP070.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP071.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP072.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP073.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP074.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP075.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP076.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP077.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP078.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP079.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP080.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP081.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP082.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx01.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx02.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx03.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx04.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx05.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx06.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx07.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx08.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx09.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx10.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx12.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx13.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx14.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx15.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx16.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx17.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx18.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx19.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx20.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx21.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx22.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD000.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD001.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD002.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD003.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD004.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD005.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD006.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD007.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD008.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD009.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI000.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI001.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI002.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI003.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI004.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI005.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI006.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI007.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI008.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI009.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI000.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI001.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI002.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI003.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI004.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI005.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI006.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI007.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI008.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI009.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO00.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO01.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO02.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO03.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO04.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO05.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO06.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO07.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO08.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO09.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT000.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT001.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT002.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR000.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR001.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR002.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR003.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS000.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS001.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS002.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS003.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS004.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS005.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS006.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS007.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS008.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS009.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_aio01.sh create mode 100644 testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_aio02.sh create mode 100644 testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_kallsyms.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr01_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr02_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bind_noport01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bind_noport01_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll01_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll02_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll03_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dccp01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dccp01_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dctcp_ipv4_01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dctcp_ipv6_01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fanout01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fou01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fou01_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve01_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve02_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv4_01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv4_02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv6_01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv6_02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gue01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gue01_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_ipvlan01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macvlan01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macvtap01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls02_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls03_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sctp01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sctp01_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sit01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_tcp_fastopen.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_tcp_fastopen6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan02_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_multi_03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_uni_03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_uni_04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_multi_03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_uni_03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_uni_04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard01_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard02_ipv6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_dhcpd6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_dnsmasq6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ip6tables.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ipneigh6_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_nft6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ping601.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ping602.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_sendfile601.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_tcpdump601.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_tracepath601.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_traceroute601.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_cmds.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_commo.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_member.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_opts.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_v30_v40_ip4.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_v4x_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_vall_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip4u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip6u.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v40_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v40_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v41_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v41_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v42_ip4t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v42_ip6t.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_auth_destroy.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authnone_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authunix_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authunix_create_default.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_callrpc.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_broadcast.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_call.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_control.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_destroy.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_freeres.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_geterr.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_pcreateerror.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_perrno.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_perror.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_spcreateerror.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_sperrno.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_sperror.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntraw_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnttcp_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntudp_bufcreate.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntudp_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_get_myaddress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_getmaps.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_getport.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_rmtcall.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_set.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_unset.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_registerrpc.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_destroy.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_freeargs.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_getargs.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_getcaller.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_register.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_sendreply.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_unregister.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_auth.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_noproc.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_noprog.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_progvers.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_systemerr.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_weakauth.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcfd_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcraw_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svctcp_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcudp_bufcreate.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcudp_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_xprt_register.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_xprt_unregister.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpcinfo.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_accept_close.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_addrs.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_connect.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_connectx.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_events.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_initmsg_connect.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_nonblock.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_recvfrom.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_recvmsg.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_rtoinfo.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_send.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sendmsg.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sendto.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_shutdown.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_socket_bind_listen.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sockopt.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_threads.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_assoc_abort.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_assoc_shutdown.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_autoclose.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_basic.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_basic_v6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_connect.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_connectx.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_fragments.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_fragments_v6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_getname.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_getname_v6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_inaddr_any.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_inaddr_any_v6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_peeloff.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_peeloff_v6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_recvmsg.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sctp_sendrecvmsg.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sctp_sendrecvmsg_v6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sockopt.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sockopt_v6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_tcp_style.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_tcp_style_v6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_timetolive.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_timetolive_v6.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_dns4-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_dns6-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp4-download-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp4-upload-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp6-download-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp6-upload-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_http4-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_http6-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ssh4-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ssh6-stress.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-checksum.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-dstaddr.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-fragment.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-ihl.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-plen.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-protcol.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-version.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-dstaddr.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-nexthdr.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-plen.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-version.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-adddel_ifconfig.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-adddel_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-addlarge_ifconfig.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-addlarge_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-change_ifconfig.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-mtu-change_ifconfig.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-mtu-change_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-adddel_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-adddel_route.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-addlarge_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-addlarge_route.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-updown_ifconfig.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-updown_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-adddel_ifconfig.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-adddel_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-addlarge_ifconfig.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-addlarge_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-mtu-change_ifconfig.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-mtu-change_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-adddel_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-adddel_route.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-addlarge_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-addlarge_route.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-updown_ifconfig.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-updown_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec27.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec28.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec29.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec30.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec31.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec32.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec33.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec34.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec35.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec36.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec27.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec28.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec29.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec30.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec31.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec32.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec33.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec34.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec35.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec36.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec27.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec28.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec29.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec30.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec31.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec32.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec33.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec34.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec35.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec36.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec27.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec28.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec29.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec30.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec31.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec32.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec33.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec34.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec35.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec36.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec27.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec28.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec29.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec30.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec31.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec32.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec33.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec34.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec35.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec36.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec27.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec28.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec29.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec30.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec31.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec32.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec33.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec34.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec35.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec36.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec27.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec28.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec29.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec30.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec31.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec32.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec33.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec34.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec35.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec36.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec18.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec19.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec20.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec21.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec22.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec23.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec24.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec25.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec26.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec27.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec28.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec29.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec30.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec31.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec32.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec33.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec34.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec35.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec36.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti07.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti08.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti09.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti10.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti11.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti12.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti13.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti14.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti15.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti16.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti17.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-multiple-socket.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-same-group.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-single-socket.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-source-filter.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-pktfld01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-pktfld02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-multiple-socket.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-same-group.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-single-socket.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-source-filter.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-pktfld01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-pktfld02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld03.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld04.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld05.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld06.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-dst.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-gw.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-if.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-dst.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-gw.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-if.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-redirect.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-dst.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-gw.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-if.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-dst.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-gw.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-if.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-redirect.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_arping01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_dhcpd.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_dnsmasq.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ftp.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ipneigh01_arp.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ipneigh01_ip.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_iproute.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_iptables.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_netstat.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_nft.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ping01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ping02.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_sendfile.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tc01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tcpdump.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tracepath01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_traceroute01.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authnone_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authsys_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authsys_create_default.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_bottomlevel_clnt_call.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_control.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_create_timed.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_destroy.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_dg_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_pcreateerror.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_perrno.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_perror.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tli_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create_timed.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_vc_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_expertlevel_clnt_call.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_interlevel_clnt_call.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast_exp.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_call.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_reg.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getaddr.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getmaps.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_rmtcall.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_set.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_unset.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_destroy.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_dg_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_reg.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_tli_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_tp_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_unreg.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_vc_create.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noproc.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noprog.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_progvers.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_systemerr.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_weakauth.sh create mode 100644 testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_toplevel_clnt_call.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages01.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages02.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages03.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages01.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages02.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages03.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages04.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages05.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages06.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages07.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages09.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages10.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages11.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages12.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_numa_testcases.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy01.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy02.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy03.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy04.sh create mode 100644 testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy05.sh create mode 100644 testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive01.sh create mode 100644 testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive02.sh create mode 100644 testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive03.sh create mode 100644 testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive04.sh create mode 100644 testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive05.sh create mode 100644 testcases/system-test/ltp-test/ltp_s390x_tests/oe_test_ltp_s390x_tests_vmcp.sh create mode 100644 testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_proc_sched_rt01.sh create mode 100644 testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_football.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf101.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf102.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf103.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf104.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf105.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf106.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf107.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf108.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf109.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf110.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf111.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf112.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf113.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf114.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf115.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf116.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf117.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf118.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf119.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf120.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf121.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf122.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf123.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf124.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf125.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf126.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf127.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf128.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf129.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf130.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf201.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf202.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf203.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf204.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf205.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf206.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf207.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf208.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf209.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf210.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf211.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf212.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf213.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf214.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf215.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf216.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf217.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf218.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf219.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf220.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf221.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf222.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf223.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf224.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf225.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf226.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf227.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf228.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf229.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf230.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf301.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf302.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf303.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf304.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf305.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf306.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf307.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf308.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf309.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf310.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf311.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf312.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf313.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf314.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf315.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf316.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf317.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf318.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf319.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf320.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf321.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf322.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf323.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf324.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf325.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf326.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf327.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf328.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf329.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf330.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf701.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf702.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf703.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf704.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf705.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf706.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf707.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf708.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf709.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf710.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf711.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf712.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf713.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf714.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf715.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf716.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf717.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf718.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf719.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf720.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf721.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf722.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf723.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf724.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf725.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf726.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf727.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf728.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf729.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf730.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest01.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest02.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest03.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest04.sh create mode 100644 testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest05.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_file_access.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_ambient.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_cipso.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_current.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_direct.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_doi.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_load.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_netlabel.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_onlycap.sh create mode 100644 testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_socket_labels.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_access01.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_chdir01.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_df01_sh.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_fork01.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_macsec02.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_ping602.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_shell_test01.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_splice02.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_stat04.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_symlink01.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_time01.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_wait02.sh create mode 100644 testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_write01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl04.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl06.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl12.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget04.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv06.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv07.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv08.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd06.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgstress01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl04.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl06.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl07.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl08.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl09.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat04.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl04.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl06.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl07.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl08.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmdt01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmdt02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget04.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget06.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_arch_prctl01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat04.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod08.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat2_01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat2_02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlonerange01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlonerange02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock04.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock06.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat03.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat03_64.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock05.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mseal01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open15.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_seccomp01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat04.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shutdown01.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shutdown02.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice07.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice08.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice09.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink09.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink10.sh create mode 100644 testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime07.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm01.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm02.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm03.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm04.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm05.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm06.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm07.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken01.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken02.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken03.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken04.sh create mode 100644 testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken05.sh create mode 100644 testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_dynamic_debug01.sh create mode 100644 testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace-stress-test.sh create mode 100644 testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace_regression01.sh create mode 100644 testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace_regression02.sh create mode 100644 testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_disable_branch.sh create mode 100644 testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_ex_kernel.sh create mode 100644 testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_ex_user.sh create mode 100644 testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_full_trace_basic.sh create mode 100644 testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_snapshot_trace_basic.sh diff --git a/suite2cases/ltp_Makefile.json b/suite2cases/ltp_Makefile.json new file mode 100644 index 000000000..daf12e453 --- /dev/null +++ b/suite2cases/ltp_Makefile.json @@ -0,0 +1,31 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_Makefile", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_Makefile_top_srcdir" + }, + { + "name": "oe_test_ltp_Makefile_include" + }, + { + "name": "oe_test_ltp_Makefile_INSTALL_DIR" + }, + { + "name": "oe_test_ltp_Makefile_UNWANTED_FILES" + }, + { + "name": "oe_test_ltp_Makefile_INSTALL_MODE" + }, + { + "name": "oe_test_ltp_Makefile_INSTALL_TARGETS" + }, + { + "name": "oe_test_ltp_Makefile_MAKE_TARGETS" + }, + { + "name": "oe_test_ltp_Makefile_include" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_capability.json b/suite2cases/ltp_capability.json new file mode 100644 index 000000000..6ace62759 --- /dev/null +++ b/suite2cases/ltp_capability.json @@ -0,0 +1,22 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_capability", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_capability_cap_bounds" + }, + { + "name": "oe_test_ltp_capability_filecaps" + }, + { + "name": "oe_test_ltp_capability_check_keepcaps01" + }, + { + "name": "oe_test_ltp_capability_check_keepcaps02" + }, + { + "name": "oe_test_ltp_capability_check_keepcaps03" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_crashme.json b/suite2cases/ltp_crashme.json new file mode 100644 index 000000000..294cb8352 --- /dev/null +++ b/suite2cases/ltp_crashme.json @@ -0,0 +1,16 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_crashme", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_crashme_f00f" + }, + { + "name": "oe_test_ltp_crashme_crash01" + }, + { + "name": "oe_test_ltp_crashme_crash02" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_cve.json b/suite2cases/ltp_cve.json index 9b2cb1d59..c5350cf48 100644 --- a/suite2cases/ltp_cve.json +++ b/suite2cases/ltp_cve.json @@ -1,5 +1,5 @@ { - "path": "${OET_PATH}/testcases/security_test/ltp_cve", + "path": "${OET_PATH}/testcases/security_test/ltp_cve/ltp_cve", "cpu": 4, "memory": 8, "cases": [ diff --git a/suite2cases/ltp_dma_thread_diotest.json b/suite2cases/ltp_dma_thread_diotest.json new file mode 100644 index 000000000..ff3610c33 --- /dev/null +++ b/suite2cases/ltp_dma_thread_diotest.json @@ -0,0 +1,28 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_dma_thread_diotest", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_dma_thread_diotest_dma_thread_diotest1" + }, + { + "name": "oe_test_ltp_dma_thread_diotest_dma_thread_diotest2" + }, + { + "name": "oe_test_ltp_dma_thread_diotest_dma_thread_diotest3" + }, + { + "name": "oe_test_ltp_dma_thread_diotest_dma_thread_diotest4" + }, + { + "name": "oe_test_ltp_dma_thread_diotest_dma_thread_diotest5" + }, + { + "name": "oe_test_ltp_dma_thread_diotest_dma_thread_diotest6" + }, + { + "name": "oe_test_ltp_dma_thread_diotest_dma_thread_diotest7" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_fs_readonly.json b/suite2cases/ltp_fs_readonly.json new file mode 100644 index 000000000..ed98c852a --- /dev/null +++ b/suite2cases/ltp_fs_readonly.json @@ -0,0 +1,172 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_fs_readonly", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_fs_readonly_test_robind01" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind02" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind03" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind04" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind05" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind06" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind07" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind08" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind09" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind10" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind11" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind12" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind13" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind14" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind15" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind16" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind17" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind18" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind19" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind20" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind21" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind22" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind23" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind24" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind25" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind26" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind27" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind28" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind29" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind30" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind31" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind32" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind33" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind34" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind35" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind36" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind37" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind38" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind39" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind40" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind41" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind42" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind43" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind44" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind45" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind46" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind47" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind48" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind49" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind50" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind51" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind52" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind53" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind54" + }, + { + "name": "oe_test_ltp_fs_readonly_test_robind55" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_ima.json b/suite2cases/ltp_ima.json new file mode 100644 index 000000000..bf4bdf5e7 --- /dev/null +++ b/suite2cases/ltp_ima.json @@ -0,0 +1,34 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_ima", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_ima_ima_measurements" + }, + { + "name": "oe_test_ltp_ima_ima_policy" + }, + { + "name": "oe_test_ltp_ima_ima_tpm" + }, + { + "name": "oe_test_ltp_ima_ima_violations" + }, + { + "name": "oe_test_ltp_ima_ima_keys" + }, + { + "name": "oe_test_ltp_ima_ima_kexec" + }, + { + "name": "oe_test_ltp_ima_ima_selinux" + }, + { + "name": "oe_test_ltp_ima_ima_conditionals" + }, + { + "name": "oe_test_ltp_ima_evm_overlay" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_kernel_misc.json b/suite2cases/ltp_kernel_misc.json index 8c6747643..dc4cd0669 100644 --- a/suite2cases/ltp_kernel_misc.json +++ b/suite2cases/ltp_kernel_misc.json @@ -53,6 +53,9 @@ }, { "name": "oe_test_ltp_kernel_misc_umip_basic_test" + }, + { + "name": "oe_test_ltp_kernel_misc_aslr01" } ] } \ No newline at end of file diff --git a/suite2cases/ltp_kvm.json b/suite2cases/ltp_kvm.json new file mode 100644 index 000000000..dc4964263 --- /dev/null +++ b/suite2cases/ltp_kvm.json @@ -0,0 +1,22 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_kvm", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_kvm_kvm_svm01" + }, + { + "name": "oe_test_ltp_kvm_kvm_svm02" + }, + { + "name": "oe_test_ltp_kvm_kvm_svm03" + }, + { + "name": "oe_test_ltp_kvm_kvm_svm04" + }, + { + "name": "oe_test_ltp_kvm_kvm_pagefault01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_ltp-aio-stress.json b/suite2cases/ltp_ltp-aio-stress.json new file mode 100644 index 000000000..8ca104d85 --- /dev/null +++ b/suite2cases/ltp_ltp-aio-stress.json @@ -0,0 +1,169 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_ltp-aio-stress", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1000" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1001" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1002" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1003" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1004" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1005" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1006" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1007" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1008" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1009" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1010" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1011" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1012" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1013" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1014" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1015" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1016" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1017" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1018" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1019" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1020" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1021" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1022" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1023" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1024" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1025" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1026" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1027" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1028" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1029" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1030" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1031" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1032" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1033" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1034" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1035" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1036" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1037" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1038" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1039" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1040" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1041" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1042" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1043" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1044" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1045" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1046" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1047" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1048" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1049" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1050" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1051" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1052" + }, + { + "name": "oe_test_ltp_ltp-aio-stress_ADS1053" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_ltp-aiodio_part1.json b/suite2cases/ltp_ltp-aiodio_part1.json new file mode 100644 index 000000000..ac134d4db --- /dev/null +++ b/suite2cases/ltp_ltp-aiodio_part1.json @@ -0,0 +1,427 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD001" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD002" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD003" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD004" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD005" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD006" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD007" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD008" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD009" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD010" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD011" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD012" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD013" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD014" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD015" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD016" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD017" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD018" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD019" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD020" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD021" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD022" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD023" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD024" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD025" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD026" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD027" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD028" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD029" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD030" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD031" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD032" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD033" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD034" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD035" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD036" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD037" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD038" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD039" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD040" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD041" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD042" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD043" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD044" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD045" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD046" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD047" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD048" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD049" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD050" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD051" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD052" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD053" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD054" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD055" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD056" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD057" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD058" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD059" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD060" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD061" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD062" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD063" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD064" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD065" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD066" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD067" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD068" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD069" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD070" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD071" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD072" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD073" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD074" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD075" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD076" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD077" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD078" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD079" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD080" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD081" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD082" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD083" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD084" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD085" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD086" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD087" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD088" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD089" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD090" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD091" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD092" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD093" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD094" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD095" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD096" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD097" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD098" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD099" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD100" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD101" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD102" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD103" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD104" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD105" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD106" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD107" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD108" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD109" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD110" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD111" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD112" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD113" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD114" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD115" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD116" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD117" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD118" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD119" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD120" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD121" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD122" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD123" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD124" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD125" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD126" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD127" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD128" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD129" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD130" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD131" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD132" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD133" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD134" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD135" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD136" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD137" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD138" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD139" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part1_AD140" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_ltp-aiodio_part2.json b/suite2cases/ltp_ltp-aiodio_part2.json new file mode 100644 index 000000000..fb7e0625b --- /dev/null +++ b/suite2cases/ltp_ltp-aiodio_part2.json @@ -0,0 +1,256 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP000" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP001" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP002" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP003" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP004" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP005" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP006" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP007" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP008" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP009" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP010" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP011" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP012" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP013" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP014" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP015" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP016" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP017" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP018" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP019" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP020" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP021" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP022" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP023" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP024" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP025" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP026" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP027" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP028" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP029" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP030" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP031" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP032" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP033" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP034" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP035" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP036" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP037" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP038" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP039" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP040" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP041" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP042" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP043" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP044" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP045" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP046" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP047" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP048" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP049" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP050" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP051" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP052" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP053" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP054" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP055" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP056" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP057" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP058" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP059" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP060" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP061" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP062" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP063" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP064" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP065" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP066" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP067" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP068" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP069" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP070" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP071" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP072" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP073" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP074" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP075" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP076" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP077" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP078" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP079" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP080" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP081" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part2_ADSP082" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_ltp-aiodio_part3.json b/suite2cases/ltp_ltp-aiodio_part3.json new file mode 100644 index 000000000..549f94e84 --- /dev/null +++ b/suite2cases/ltp_ltp-aiodio_part3.json @@ -0,0 +1,70 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx01" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx02" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx03" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx04" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx05" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx06" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx07" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx08" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx09" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx10" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx12" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx13" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx14" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx15" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx16" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx17" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx18" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx19" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx20" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx21" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part3_fsx22" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_ltp-aiodio_part4.json b/suite2cases/ltp_ltp-aiodio_part4.json new file mode 100644 index 000000000..6acd367c2 --- /dev/null +++ b/suite2cases/ltp_ltp-aiodio_part4.json @@ -0,0 +1,184 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_ltp-aiodio_part4_aio01" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_aio02" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI000" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS000" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI001" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS001" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI002" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS002" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI003" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS003" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI004" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS004" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI005" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS005" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI006" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS006" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI007" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS007" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI008" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS008" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DI009" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DS009" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO00" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO01" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO02" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO03" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO04" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO05" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO06" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO07" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO08" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIO09" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD000" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD001" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD002" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD003" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD004" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD005" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD006" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD007" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD008" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_AD009" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI000" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI001" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI002" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI003" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI004" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI005" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI006" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI007" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI008" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_ADI009" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIT000" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIT001" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DIT002" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DOR000" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DOR001" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DOR002" + }, + { + "name": "oe_test_ltp_ltp-aiodio_part4_DOR003" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_mm.json b/suite2cases/ltp_mm.json index 22521aaae..fe3987e3e 100644 --- a/suite2cases/ltp_mm.json +++ b/suite2cases/ltp_mm.json @@ -120,6 +120,9 @@ { "name": "oe_test_ltp_mm_mmap10_4" }, + { + "name": "oe_test_ltp_mm_kallsyms" + }, { "name": "oe_test_ltp_mm_ksm01" }, diff --git a/suite2cases/ltp_net_features.json b/suite2cases/ltp_net_features.json new file mode 100644 index 000000000..806383f71 --- /dev/null +++ b/suite2cases/ltp_net_features.json @@ -0,0 +1,193 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_features", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_features_bbr01" + }, + { + "name": "oe_test_ltp_net_features_bbr01_ipv6" + }, + { + "name": "oe_test_ltp_net_features_bbr02" + }, + { + "name": "oe_test_ltp_net_features_bbr02_ipv6" + }, + { + "name": "oe_test_ltp_net_features_bind_noport01" + }, + { + "name": "oe_test_ltp_net_features_bind_noport01_ipv6" + }, + { + "name": "oe_test_ltp_net_features_busy_poll01" + }, + { + "name": "oe_test_ltp_net_features_busy_poll01_ipv6" + }, + { + "name": "oe_test_ltp_net_features_busy_poll02" + }, + { + "name": "oe_test_ltp_net_features_busy_poll02_ipv6" + }, + { + "name": "oe_test_ltp_net_features_busy_poll03" + }, + { + "name": "oe_test_ltp_net_features_busy_poll03_ipv6" + }, + { + "name": "oe_test_ltp_net_features_dccp01" + }, + { + "name": "oe_test_ltp_net_features_dccp01_ipv6" + }, + { + "name": "oe_test_ltp_net_features_sctp01" + }, + { + "name": "oe_test_ltp_net_features_sctp01_ipv6" + }, + { + "name": "oe_test_ltp_net_features_tcp_fastopen" + }, + { + "name": "oe_test_ltp_net_features_tcp_fastopen6" + }, + { + "name": "oe_test_ltp_net_features_vxlan01" + }, + { + "name": "oe_test_ltp_net_features_vxlan02" + }, + { + "name": "oe_test_ltp_net_features_vxlan02_ipv6" + }, + { + "name": "oe_test_ltp_net_features_vxlan_multi_03" + }, + { + "name": "oe_test_ltp_net_features_vxlan_uni_03" + }, + { + "name": "oe_test_ltp_net_features_vxlan_ipv6_multi_03" + }, + { + "name": "oe_test_ltp_net_features_vxlan_ipv6_uni_03" + }, + { + "name": "oe_test_ltp_net_features_vxlan_uni_04" + }, + { + "name": "oe_test_ltp_net_features_vxlan_ipv6_uni_04" + }, + { + "name": "oe_test_ltp_net_features_vlan01" + }, + { + "name": "oe_test_ltp_net_features_vlan02" + }, + { + "name": "oe_test_ltp_net_features_vlan03" + }, + { + "name": "oe_test_ltp_net_features_macvlan01" + }, + { + "name": "oe_test_ltp_net_features_macvtap01" + }, + { + "name": "oe_test_ltp_net_features_macsec01" + }, + { + "name": "oe_test_ltp_net_features_macsec02" + }, + { + "name": "oe_test_ltp_net_features_macsec03" + }, + { + "name": "oe_test_ltp_net_features_ipvlan01" + }, + { + "name": "oe_test_ltp_net_features_gre_ipv4_01" + }, + { + "name": "oe_test_ltp_net_features_gre_ipv6_01" + }, + { + "name": "oe_test_ltp_net_features_gre_ipv4_02" + }, + { + "name": "oe_test_ltp_net_features_gre_ipv6_02" + }, + { + "name": "oe_test_ltp_net_features_gue01" + }, + { + "name": "oe_test_ltp_net_features_gue01_ipv6" + }, + { + "name": "oe_test_ltp_net_features_fou01" + }, + { + "name": "oe_test_ltp_net_features_fou01_ipv6" + }, + { + "name": "oe_test_ltp_net_features_dctcp_ipv4_01" + }, + { + "name": "oe_test_ltp_net_features_dctcp_ipv6_01" + }, + { + "name": "oe_test_ltp_net_features_geneve01" + }, + { + "name": "oe_test_ltp_net_features_geneve01_ipv6" + }, + { + "name": "oe_test_ltp_net_features_geneve02" + }, + { + "name": "oe_test_ltp_net_features_geneve02_ipv6" + }, + { + "name": "oe_test_ltp_net_features_sit01" + }, + { + "name": "oe_test_ltp_net_features_mpls01" + }, + { + "name": "oe_test_ltp_net_features_mpls02" + }, + { + "name": "oe_test_ltp_net_features_mpls02_ipv6" + }, + { + "name": "oe_test_ltp_net_features_mpls03" + }, + { + "name": "oe_test_ltp_net_features_mpls03_ipv6" + }, + { + "name": "oe_test_ltp_net_features_mpls04" + }, + { + "name": "oe_test_ltp_net_features_fanout01" + }, + { + "name": "oe_test_ltp_net_features_wireguard01" + }, + { + "name": "oe_test_ltp_net_features_wireguard01_ipv6" + }, + { + "name": "oe_test_ltp_net_features_wireguard02" + }, + { + "name": "oe_test_ltp_net_features_wireguard02_ipv6" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_ipv6.json b/suite2cases/ltp_net_ipv6.json new file mode 100644 index 000000000..c9a604414 --- /dev/null +++ b/suite2cases/ltp_net_ipv6.json @@ -0,0 +1,40 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_ipv6", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_ipv6_ping601" + }, + { + "name": "oe_test_ltp_net_ipv6_ping602" + }, + { + "name": "oe_test_ltp_net_ipv6_sendfile601" + }, + { + "name": "oe_test_ltp_net_ipv6_tcpdump601" + }, + { + "name": "oe_test_ltp_net_ipv6_tracepath601" + }, + { + "name": "oe_test_ltp_net_ipv6_traceroute601" + }, + { + "name": "oe_test_ltp_net_ipv6_dhcpd6" + }, + { + "name": "oe_test_ltp_net_ipv6_dnsmasq6" + }, + { + "name": "oe_test_ltp_net_ipv6_ipneigh6_ip" + }, + { + "name": "oe_test_ltp_net_ipv6_ip6tables" + }, + { + "name": "oe_test_ltp_net_ipv6_nft6" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_multicast.json b/suite2cases/ltp_net_multicast.json new file mode 100644 index 000000000..164a68c9b --- /dev/null +++ b/suite2cases/ltp_net_multicast.json @@ -0,0 +1,19 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_multicast", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_multicast_mc_cmds" + }, + { + "name": "oe_test_ltp_net_multicast_mc_commo" + }, + { + "name": "oe_test_ltp_net_multicast_mc_member" + }, + { + "name": "oe_test_ltp_net_multicast_mc_opts" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_nfs.json b/suite2cases/ltp_net_nfs.json new file mode 100644 index 000000000..87668b02f --- /dev/null +++ b/suite2cases/ltp_net_nfs.json @@ -0,0 +1,346 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_nfs", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_nfs_nfs01_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs01_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs01_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs01_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs01_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs01_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs01_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs01_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs01_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs01_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs02_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs03_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs04_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs05_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs06_v30_v40_ip4" + }, + { + "name": "oe_test_ltp_net_nfs_nfs06_vall_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs06_v4x_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs07_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs08_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfs09_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfslock01_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_nfsstat01_v42_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v30_ip4u" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v30_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v40_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v41_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v42_ip4t" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v30_ip6u" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v30_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v40_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v41_ip6t" + }, + { + "name": "oe_test_ltp_net_nfs_fsx_v42_ip6t" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_rpc_tests.json b/suite2cases/ltp_net_rpc_tests.json new file mode 100644 index 000000000..8c3fd4023 --- /dev/null +++ b/suite2cases/ltp_net_rpc_tests.json @@ -0,0 +1,160 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_rpc_tests", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_rpc_tests_rpc01" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpcinfo" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_pmap_set" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_pmap_unset" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_pmap_getport" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_pmap_getmaps" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_pmap_rmtcall" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_get_myaddress" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_authnone_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_authunix_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_authunix_create_default" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_auth_destroy" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_broadcast" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svc_destroy" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcfd_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svctcp_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcudp_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcraw_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcudp_bufcreate" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_destroy" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clntraw_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnttcp_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clntudp_create" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clntudp_bufcreate" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_pcreateerror" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_perrno" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_perror" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_spcreateerror" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_sperrno" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_sperror" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcerr_noproc" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcerr_noprog" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcerr_progvers" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcerr_systemerr" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcerr_auth" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svcerr_weakauth" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_xprt_register" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_xprt_unregister" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svc_register" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svc_unregister" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_registerrpc" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_call" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_callrpc" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_freeres" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_geterr" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_clnt_control" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svc_getcaller" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svc_freeargs" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svc_getargs" + }, + { + "name": "oe_test_ltp_net_rpc_tests_rpc_svc_sendreply" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_sctp.json b/suite2cases/ltp_net_sctp.json new file mode 100644 index 000000000..ab8b5ab32 --- /dev/null +++ b/suite2cases/ltp_net_sctp.json @@ -0,0 +1,130 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_sctp", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_accept_close" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_addrs" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_connect" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_connectx" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_events" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_initmsg_connect" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_nonblock" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_recvfrom" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_recvmsg" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_rtoinfo" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_send" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_sendmsg" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_sendto" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_shutdown" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_socket_bind_listen" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_sockopt" + }, + { + "name": "oe_test_ltp_net_sctp_test_1_to_1_threads" + }, + { + "name": "oe_test_ltp_net_sctp_test_assoc_abort" + }, + { + "name": "oe_test_ltp_net_sctp_test_assoc_shutdown" + }, + { + "name": "oe_test_ltp_net_sctp_test_autoclose" + }, + { + "name": "oe_test_ltp_net_sctp_test_basic" + }, + { + "name": "oe_test_ltp_net_sctp_test_basic_v6" + }, + { + "name": "oe_test_ltp_net_sctp_test_connect" + }, + { + "name": "oe_test_ltp_net_sctp_test_connectx" + }, + { + "name": "oe_test_ltp_net_sctp_test_fragments" + }, + { + "name": "oe_test_ltp_net_sctp_test_fragments_v6" + }, + { + "name": "oe_test_ltp_net_sctp_test_getname" + }, + { + "name": "oe_test_ltp_net_sctp_test_getname_v6" + }, + { + "name": "oe_test_ltp_net_sctp_test_inaddr_any" + }, + { + "name": "oe_test_ltp_net_sctp_test_inaddr_any_v6" + }, + { + "name": "oe_test_ltp_net_sctp_test_peeloff" + }, + { + "name": "oe_test_ltp_net_sctp_test_peeloff_v6" + }, + { + "name": "oe_test_ltp_net_sctp_test_recvmsg" + }, + { + "name": "oe_test_ltp_net_sctp_test_sctp_sendrecvmsg" + }, + { + "name": "oe_test_ltp_net_sctp_test_sctp_sendrecvmsg_v6" + }, + { + "name": "oe_test_ltp_net_sctp_test_sockopt" + }, + { + "name": "oe_test_ltp_net_sctp_test_sockopt_v6" + }, + { + "name": "oe_test_ltp_net_sctp_test_tcp_style" + }, + { + "name": "oe_test_ltp_net_sctp_test_tcp_style_v6" + }, + { + "name": "oe_test_ltp_net_sctp_test_timetolive" + }, + { + "name": "oe_test_ltp_net_sctp_test_timetolive_v6" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_appl.json b/suite2cases/ltp_net_stress_appl.json new file mode 100644 index 000000000..3460ab26b --- /dev/null +++ b/suite2cases/ltp_net_stress_appl.json @@ -0,0 +1,37 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_appl", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_appl_ssh4-stress" + }, + { + "name": "oe_test_ltp_net_stress_appl_ssh6-stress" + }, + { + "name": "oe_test_ltp_net_stress_appl_dns4-stress" + }, + { + "name": "oe_test_ltp_net_stress_appl_dns6-stress" + }, + { + "name": "oe_test_ltp_net_stress_appl_http4-stress" + }, + { + "name": "oe_test_ltp_net_stress_appl_http6-stress" + }, + { + "name": "oe_test_ltp_net_stress_appl_ftp4-download-stress" + }, + { + "name": "oe_test_ltp_net_stress_appl_ftp6-download-stress" + }, + { + "name": "oe_test_ltp_net_stress_appl_ftp4-upload-stress" + }, + { + "name": "oe_test_ltp_net_stress_appl_ftp6-upload-stress" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_broken_ip.json b/suite2cases/ltp_net_stress_broken_ip.json new file mode 100644 index 000000000..3079d8c7c --- /dev/null +++ b/suite2cases/ltp_net_stress_broken_ip.json @@ -0,0 +1,40 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_broken_ip", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip4-version" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip4-ihl" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip4-fragment" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip4-plen" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip4-protcol" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip4-checksum" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip4-dstaddr" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip6-dstaddr" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip6-nexthdr" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip6-plen" + }, + { + "name": "oe_test_ltp_net_stress_broken_ip_broken_ip6-version" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_interface.json b/suite2cases/ltp_net_stress_interface.json new file mode 100644 index 000000000..6b584141b --- /dev/null +++ b/suite2cases/ltp_net_stress_interface.json @@ -0,0 +1,82 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_interface", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_interface_if4-addr-change_ifconfig" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-updown_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-updown_ifconfig" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-addr-adddel_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-addr-adddel_ifconfig" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-addr-addlarge_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-addr-addlarge_ifconfig" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-route-adddel_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-route-adddel_route" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-route-addlarge_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-route-addlarge_route" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-mtu-change_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if4-mtu-change_ifconfig" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-updown_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-updown_ifconfig" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-addr-adddel_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-addr-adddel_ifconfig" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-addr-addlarge_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-addr-addlarge_ifconfig" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-route-adddel_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-route-adddel_route" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-route-addlarge_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-route-addlarge_route" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-mtu-change_ip" + }, + { + "name": "oe_test_ltp_net_stress_interface_if6-mtu-change_ifconfig" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_ipsec_dccp.json b/suite2cases/ltp_net_stress_ipsec_dccp.json new file mode 100644 index 000000000..cfef29a55 --- /dev/null +++ b/suite2cases/ltp_net_stress_ipsec_dccp.json @@ -0,0 +1,319 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec27" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec28" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec29" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec30" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec31" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec32" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec33" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec34" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec35" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec36" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec27" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec28" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec29" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec30" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec31" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec32" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec33" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec34" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec35" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec36" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti17" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_ipsec_icmp.json b/suite2cases/ltp_net_stress_ipsec_icmp.json new file mode 100644 index 000000000..ecd6f571d --- /dev/null +++ b/suite2cases/ltp_net_stress_ipsec_icmp.json @@ -0,0 +1,265 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti17" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_ipsec_sctp.json b/suite2cases/ltp_net_stress_ipsec_sctp.json new file mode 100644 index 000000000..2146a0a31 --- /dev/null +++ b/suite2cases/ltp_net_stress_ipsec_sctp.json @@ -0,0 +1,319 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec27" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec28" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec29" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec30" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec31" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec32" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec33" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec34" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec35" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec36" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec27" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec28" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec29" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec30" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec31" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec32" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec33" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec34" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec35" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec36" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti17" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_ipsec_tcp.json b/suite2cases/ltp_net_stress_ipsec_tcp.json new file mode 100644 index 000000000..062c0bbc1 --- /dev/null +++ b/suite2cases/ltp_net_stress_ipsec_tcp.json @@ -0,0 +1,319 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec27" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec28" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec29" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec30" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec31" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec32" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec33" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec34" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec35" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec36" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec27" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec28" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec29" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec30" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec31" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec32" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec33" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec34" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec35" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec36" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti17" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_ipsec_udp.json b/suite2cases/ltp_net_stress_ipsec_udp.json new file mode 100644 index 000000000..426363aaf --- /dev/null +++ b/suite2cases/ltp_net_stress_ipsec_udp.json @@ -0,0 +1,325 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec27" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec28" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec29" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec30" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec31" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec32" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec33" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec34" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec35" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec36" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec18" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec19" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec20" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec21" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec22" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec23" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec24" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec25" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec26" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec27" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec28" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec29" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec30" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec31" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec32" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec33" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec34" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec35" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec36" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti17" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti01" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti02" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti03" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti04" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti05" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti06" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti07" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti08" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti09" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti10" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti11" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti12" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti13" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti14" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti15" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti16" + }, + { + "name": "oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti17" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_multicast.json b/suite2cases/ltp_net_stress_multicast.json new file mode 100644 index 000000000..6e57b58c9 --- /dev/null +++ b/suite2cases/ltp_net_stress_multicast.json @@ -0,0 +1,79 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_multicast", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-group-single-socket" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-group-multiple-socket" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-group-same-group" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-group-source-filter" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-pktfld01" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-pktfld02" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-queryfld01" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-queryfld02" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-queryfld03" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-queryfld04" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-queryfld05" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast4-queryfld06" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-group-single-socket" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-group-multiple-socket" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-group-same-group" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-group-source-filter" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-pktfld01" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-pktfld02" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-queryfld01" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-queryfld02" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-queryfld03" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-queryfld04" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-queryfld05" + }, + { + "name": "oe_test_ltp_net_stress_multicast_mcast6-queryfld06" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_stress_route.json b/suite2cases/ltp_net_stress_route.json new file mode 100644 index 000000000..298073584 --- /dev/null +++ b/suite2cases/ltp_net_stress_route.json @@ -0,0 +1,49 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_stress_route", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_stress_route_route4-change-dst" + }, + { + "name": "oe_test_ltp_net_stress_route_route4-change-gw" + }, + { + "name": "oe_test_ltp_net_stress_route_route4-change-if" + }, + { + "name": "oe_test_ltp_net_stress_route_route4-change-netlink-dst" + }, + { + "name": "oe_test_ltp_net_stress_route_route4-change-netlink-gw" + }, + { + "name": "oe_test_ltp_net_stress_route_route4-change-netlink-if" + }, + { + "name": "oe_test_ltp_net_stress_route_route4-redirect" + }, + { + "name": "oe_test_ltp_net_stress_route_route6-change-dst" + }, + { + "name": "oe_test_ltp_net_stress_route_route6-change-gw" + }, + { + "name": "oe_test_ltp_net_stress_route_route6-change-if" + }, + { + "name": "oe_test_ltp_net_stress_route_route6-change-netlink-dst" + }, + { + "name": "oe_test_ltp_net_stress_route_route6-change-netlink-gw" + }, + { + "name": "oe_test_ltp_net_stress_route_route6-change-netlink-if" + }, + { + "name": "oe_test_ltp_net_stress_route_route6-redirect" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_tcp_cmds.json b/suite2cases/ltp_net_tcp_cmds.json new file mode 100644 index 000000000..d11df5c3d --- /dev/null +++ b/suite2cases/ltp_net_tcp_cmds.json @@ -0,0 +1,58 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_tcp_cmds", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_tcp_cmds_ipneigh01_arp" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_ipneigh01_ip" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_arping01" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_ftp" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_netstat" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_ping01" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_ping02" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_sendfile" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_tc01" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_tcpdump" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_iptables" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_nft" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_dhcpd" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_dnsmasq" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_iproute" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_tracepath01" + }, + { + "name": "oe_test_ltp_net_tcp_cmds_traceroute01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_tirpc_tests.json b/suite2cases/ltp_net_tirpc_tests.json new file mode 100644 index 000000000..df8d60c27 --- /dev/null +++ b/suite2cases/ltp_net_tirpc_tests.json @@ -0,0 +1,130 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_net_tirpc_tests", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getaddr" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getmaps" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_authnone_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_authsys_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_authsys_create_default" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_dg_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svc_dg_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_vc_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svc_vc_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_bottomlevel_clnt_call" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_pcreateerror" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_perrno" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_perror" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noproc" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noprog" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svcerr_progvers" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svcerr_systemerr" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svcerr_weakauth" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_tli_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svc_tli_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_rpcb_set" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_rpcb_unset" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_rpcb_rmtcall" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svc_reg" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svc_unreg" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_expertlevel_clnt_call" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create_timed" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svc_tp_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_interlevel_clnt_call" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_control" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_rpc_reg" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_rpc_call" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast_exp" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_create_timed" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svc_create" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_toplevel_clnt_call" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_clnt_destroy" + }, + { + "name": "oe_test_ltp_net_tirpc_tests_tirpc_svc_destroy" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_numa.json b/suite2cases/ltp_numa.json new file mode 100644 index 000000000..a590d8f99 --- /dev/null +++ b/suite2cases/ltp_numa.json @@ -0,0 +1,67 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_numa", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_numa_migrate_pages01" + }, + { + "name": "oe_test_ltp_numa_migrate_pages02" + }, + { + "name": "oe_test_ltp_numa_migrate_pages03" + }, + { + "name": "oe_test_ltp_numa_move_pages01" + }, + { + "name": "oe_test_ltp_numa_move_pages02" + }, + { + "name": "oe_test_ltp_numa_move_pages03" + }, + { + "name": "oe_test_ltp_numa_move_pages04" + }, + { + "name": "oe_test_ltp_numa_move_pages05" + }, + { + "name": "oe_test_ltp_numa_move_pages06" + }, + { + "name": "oe_test_ltp_numa_move_pages07" + }, + { + "name": "oe_test_ltp_numa_move_pages09" + }, + { + "name": "oe_test_ltp_numa_move_pages10" + }, + { + "name": "oe_test_ltp_numa_move_pages11" + }, + { + "name": "oe_test_ltp_numa_move_pages12" + }, + { + "name": "oe_test_ltp_numa_numa_testcases" + }, + { + "name": "oe_test_ltp_numa_set_mempolicy01" + }, + { + "name": "oe_test_ltp_numa_set_mempolicy02" + }, + { + "name": "oe_test_ltp_numa_set_mempolicy03" + }, + { + "name": "oe_test_ltp_numa_set_mempolicy04" + }, + { + "name": "oe_test_ltp_numa_set_mempolicy05" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_power_management_tests_exclusive.json b/suite2cases/ltp_power_management_tests_exclusive.json new file mode 100644 index 000000000..4219ee736 --- /dev/null +++ b/suite2cases/ltp_power_management_tests_exclusive.json @@ -0,0 +1,22 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive01" + }, + { + "name": "oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive02" + }, + { + "name": "oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive03" + }, + { + "name": "oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive04" + }, + { + "name": "oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive05" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_s390x_tests.json b/suite2cases/ltp_s390x_tests.json new file mode 100644 index 000000000..6e5141a31 --- /dev/null +++ b/suite2cases/ltp_s390x_tests.json @@ -0,0 +1,10 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_s390x_tests", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_s390x_tests_vmcp" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_sched.json b/suite2cases/ltp_sched.json index 0fde46e72..8bd60ab18 100644 --- a/suite2cases/ltp_sched.json +++ b/suite2cases/ltp_sched.json @@ -30,6 +30,9 @@ { "name": "oe_test_ltp_sched_starvation" }, + { + "name": "oe_test_ltp_sched_proc_sched_rt01" + }, { "name": "oe_test_ltp_sched_sched_cli_serv" }, @@ -38,6 +41,9 @@ }, { "name": "oe_test_ltp_sched_autogroup01" + }, + { + "name": "oe_test_ltp_sched_sched_football" } ] } \ No newline at end of file diff --git a/suite2cases/ltp_scsi_debug_part1.json b/suite2cases/ltp_scsi_debug_part1.json new file mode 100644 index 000000000..4076d9afc --- /dev/null +++ b/suite2cases/ltp_scsi_debug_part1.json @@ -0,0 +1,427 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_scsi_debug_part1", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_scsi_debug_part1_gf201" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf202" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf203" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf204" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf205" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf206" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf207" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf208" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf209" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf210" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf211" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf212" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf213" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf214" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf215" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf216" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf217" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf218" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf219" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf220" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf221" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf222" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf223" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf224" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf225" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf226" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf227" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf228" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf229" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf230" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest01" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest02" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest03" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest04" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest05" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf301" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf302" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf303" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf304" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf305" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf306" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf307" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf308" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf309" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf310" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf311" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf312" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf313" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf314" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf315" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf316" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf317" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf318" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf319" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf320" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf321" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf322" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf323" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf324" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf325" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf326" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf327" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf328" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf329" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf330" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest01" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest02" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest03" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest04" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest05" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf701" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf702" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf703" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf704" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf705" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf706" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf707" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf708" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf709" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf710" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf711" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf712" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf713" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf714" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf715" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf716" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf717" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf718" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf719" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf720" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf721" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf722" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf723" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf724" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf725" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf726" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf727" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf728" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf729" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf730" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest01" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest02" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest03" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest04" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest05" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf101" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf102" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf103" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf104" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf105" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf106" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf107" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf108" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf109" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf110" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf111" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf112" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf113" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf114" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf115" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf116" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf117" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf118" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf119" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf120" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf121" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf122" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf123" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf124" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf125" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf126" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf127" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf128" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf129" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_gf130" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest01" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest02" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest03" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest04" + }, + { + "name": "oe_test_ltp_scsi_debug_part1_rwtest05" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_smack.json b/suite2cases/ltp_smack.json new file mode 100644 index 000000000..5d74bfc84 --- /dev/null +++ b/suite2cases/ltp_smack.json @@ -0,0 +1,37 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_smack", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_smack_smack_set_ambient" + }, + { + "name": "oe_test_ltp_smack_smack_set_current" + }, + { + "name": "oe_test_ltp_smack_smack_set_doi" + }, + { + "name": "oe_test_ltp_smack_smack_set_netlabel" + }, + { + "name": "oe_test_ltp_smack_smack_set_socket_labels" + }, + { + "name": "oe_test_ltp_smack_smack_set_cipso" + }, + { + "name": "oe_test_ltp_smack_smack_set_direct" + }, + { + "name": "oe_test_ltp_smack_smack_set_load" + }, + { + "name": "oe_test_ltp_smack_smack_set_onlycap" + }, + { + "name": "oe_test_ltp_smack_smack_file_access" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_smoketest.json b/suite2cases/ltp_smoketest.json new file mode 100644 index 000000000..0b6e575d8 --- /dev/null +++ b/suite2cases/ltp_smoketest.json @@ -0,0 +1,46 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_smoketest", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_smoketest_access01" + }, + { + "name": "oe_test_ltp_smoketest_chdir01" + }, + { + "name": "oe_test_ltp_smoketest_fork01" + }, + { + "name": "oe_test_ltp_smoketest_time01" + }, + { + "name": "oe_test_ltp_smoketest_wait02" + }, + { + "name": "oe_test_ltp_smoketest_write01" + }, + { + "name": "oe_test_ltp_smoketest_symlink01" + }, + { + "name": "oe_test_ltp_smoketest_stat04" + }, + { + "name": "oe_test_ltp_smoketest_splice02" + }, + { + "name": "oe_test_ltp_smoketest_df01_sh" + }, + { + "name": "oe_test_ltp_smoketest_shell_test01" + }, + { + "name": "oe_test_ltp_smoketest_ping602" + }, + { + "name": "oe_test_ltp_smoketest_macsec02" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_staging.json b/suite2cases/ltp_staging.json new file mode 100644 index 000000000..080af6608 --- /dev/null +++ b/suite2cases/ltp_staging.json @@ -0,0 +1,6 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_staging", + "cpu": 4, + "memory": 8, + "cases": [] +} \ No newline at end of file diff --git a/suite2cases/ltp_syscalls-ipc.json b/suite2cases/ltp_syscalls-ipc.json new file mode 100644 index 000000000..edf9a091d --- /dev/null +++ b/suite2cases/ltp_syscalls-ipc.json @@ -0,0 +1,178 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_syscalls-ipc", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_syscalls-ipc_msgctl01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgctl02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgctl03" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgctl04" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgctl05" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgctl06" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgctl12" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgstress01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgget01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgget02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgget03" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgget04" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgget05" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgrcv01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgrcv02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgrcv03" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgrcv05" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgrcv06" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgrcv07" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgrcv08" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgsnd01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgsnd02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgsnd05" + }, + { + "name": "oe_test_ltp_syscalls-ipc_msgsnd06" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semctl01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semctl02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semctl03" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semctl04" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semctl05" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semctl06" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semctl07" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semctl08" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semctl09" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semget01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semget02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semget05" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semop01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semop02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_semop03" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmat01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmat02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmat04" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmctl01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmctl02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmctl03" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmctl04" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmctl05" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmctl06" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmctl07" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmctl08" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmdt01" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmdt02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmget02" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmget03" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmget04" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmget05" + }, + { + "name": "oe_test_ltp_syscalls-ipc_shmget06" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_syscalls.json b/suite2cases/ltp_syscalls.json index 605719070..61e1b43c7 100644 --- a/suite2cases/ltp_syscalls.json +++ b/suite2cases/ltp_syscalls.json @@ -12,6 +12,9 @@ { "name": "oe_test_ltp_syscalls_accept02" }, + { + "name": "oe_test_ltp_syscalls_accept03" + }, { "name": "oe_test_ltp_syscalls_accept4_01" }, @@ -72,6 +75,9 @@ { "name": "oe_test_ltp_syscalls_alarm07" }, + { + "name": "oe_test_ltp_syscalls_arch_prctl01" + }, { "name": "oe_test_ltp_syscalls_bind01" }, @@ -141,6 +147,18 @@ { "name": "oe_test_ltp_syscalls_cacheflush01" }, + { + "name": "oe_test_ltp_syscalls_cachestat01" + }, + { + "name": "oe_test_ltp_syscalls_cachestat02" + }, + { + "name": "oe_test_ltp_syscalls_cachestat03" + }, + { + "name": "oe_test_ltp_syscalls_cachestat04" + }, { "name": "oe_test_ltp_syscalls_chdir01" }, @@ -168,6 +186,9 @@ { "name": "oe_test_ltp_syscalls_chmod07" }, + { + "name": "oe_test_ltp_syscalls_chmod08" + }, { "name": "oe_test_ltp_syscalls_chown01" }, @@ -630,6 +651,12 @@ { "name": "oe_test_ltp_syscalls_fchmodat02" }, + { + "name": "oe_test_ltp_syscalls_fchmodat2_01" + }, + { + "name": "oe_test_ltp_syscalls_fchmodat2_02" + }, { "name": "oe_test_ltp_syscalls_fchown01" }, @@ -822,12 +849,6 @@ { "name": "oe_test_ltp_syscalls_fcntl27_64" }, - { - "name": "oe_test_ltp_syscalls_fcntl28" - }, - { - "name": "oe_test_ltp_syscalls_fcntl28_64" - }, { "name": "oe_test_ltp_syscalls_fcntl29" }, @@ -1083,6 +1104,9 @@ { "name": "oe_test_ltp_syscalls_getcpu01" }, + { + "name": "oe_test_ltp_syscalls_getcpu02" + }, { "name": "oe_test_ltp_syscalls_getcwd01" }, @@ -1161,6 +1185,9 @@ { "name": "oe_test_ltp_syscalls_gethostname01" }, + { + "name": "oe_test_ltp_syscalls_gethostname02" + }, { "name": "oe_test_ltp_syscalls_getitimer01" }, @@ -1212,6 +1239,9 @@ { "name": "oe_test_ltp_syscalls_getrandom04" }, + { + "name": "oe_test_ltp_syscalls_getrandom05" + }, { "name": "oe_test_ltp_syscalls_getresgid01" }, @@ -1410,6 +1440,21 @@ { "name": "oe_test_ltp_syscalls_ioctl_sg01" }, + { + "name": "oe_test_ltp_syscalls_ioctl_ficlone01" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ficlone02" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ficlone03" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ficlonerange01" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ficlonerange02" + }, { "name": "oe_test_ltp_syscalls_inotify_init1_01" }, @@ -1653,6 +1698,24 @@ { "name": "oe_test_ltp_syscalls_kill13" }, + { + "name": "oe_test_ltp_syscalls_landlock01" + }, + { + "name": "oe_test_ltp_syscalls_landlock02" + }, + { + "name": "oe_test_ltp_syscalls_landlock03" + }, + { + "name": "oe_test_ltp_syscalls_landlock04" + }, + { + "name": "oe_test_ltp_syscalls_landlock05" + }, + { + "name": "oe_test_ltp_syscalls_landlock06" + }, { "name": "oe_test_ltp_syscalls_lchown01" }, @@ -1743,12 +1806,6 @@ { "name": "oe_test_ltp_syscalls_lseek11" }, - { - "name": "oe_test_ltp_syscalls_lstat01A" - }, - { - "name": "oe_test_ltp_syscalls_lstat01A_64" - }, { "name": "oe_test_ltp_syscalls_lstat01" }, @@ -1761,6 +1818,12 @@ { "name": "oe_test_ltp_syscalls_lstat02_64" }, + { + "name": "oe_test_ltp_syscalls_lstat03" + }, + { + "name": "oe_test_ltp_syscalls_lstat03_64" + }, { "name": "oe_test_ltp_syscalls_mallinfo02" }, @@ -1821,9 +1884,6 @@ { "name": "oe_test_ltp_syscalls_mkdir05" }, - { - "name": "oe_test_ltp_syscalls_mkdir05A" - }, { "name": "oe_test_ltp_syscalls_mkdir09" }, @@ -1878,6 +1938,9 @@ { "name": "oe_test_ltp_syscalls_mlock04" }, + { + "name": "oe_test_ltp_syscalls_mlock05" + }, { "name": "oe_test_ltp_syscalls_mlock201" }, @@ -2070,6 +2133,9 @@ { "name": "oe_test_ltp_syscalls_mremap06" }, + { + "name": "oe_test_ltp_syscalls_mseal01" + }, { "name": "oe_test_ltp_syscalls_msgctl01" }, @@ -2089,19 +2155,10 @@ "name": "oe_test_ltp_syscalls_msgctl06" }, { - "name": "oe_test_ltp_syscalls_msgstress01" - }, - { - "name": "oe_test_ltp_syscalls_msgstress02" - }, - { - "name": "oe_test_ltp_syscalls_msgstress03" - }, - { - "name": "oe_test_ltp_syscalls_msgstress04" + "name": "oe_test_ltp_syscalls_msgctl12" }, { - "name": "oe_test_ltp_syscalls_msgctl12" + "name": "oe_test_ltp_syscalls_msgstress01" }, { "name": "oe_test_ltp_syscalls_msgget01" @@ -2220,9 +2277,6 @@ { "name": "oe_test_ltp_syscalls_open01" }, - { - "name": "oe_test_ltp_syscalls_open01A" - }, { "name": "oe_test_ltp_syscalls_open02" }, @@ -2259,6 +2313,9 @@ { "name": "oe_test_ltp_syscalls_open14" }, + { + "name": "oe_test_ltp_syscalls_open15" + }, { "name": "oe_test_ltp_syscalls_openat01" }, @@ -2460,9 +2517,6 @@ { "name": "oe_test_ltp_syscalls_prctl03" }, - { - "name": "oe_test_ltp_syscalls_prctl04" - }, { "name": "oe_test_ltp_syscalls_prctl05" }, @@ -2970,6 +3024,9 @@ { "name": "oe_test_ltp_syscalls_sched_getattr02" }, + { + "name": "oe_test_ltp_syscalls_seccomp01" + }, { "name": "oe_test_ltp_syscalls_select01" }, @@ -3483,6 +3540,9 @@ { "name": "oe_test_ltp_syscalls_shmat03" }, + { + "name": "oe_test_ltp_syscalls_shmat04" + }, { "name": "oe_test_ltp_syscalls_shmctl01" }, @@ -3528,6 +3588,12 @@ { "name": "oe_test_ltp_syscalls_shmget06" }, + { + "name": "oe_test_ltp_syscalls_shutdown01" + }, + { + "name": "oe_test_ltp_syscalls_shutdown02" + }, { "name": "oe_test_ltp_syscalls_sigaction01" }, @@ -3633,6 +3699,15 @@ { "name": "oe_test_ltp_syscalls_splice06" }, + { + "name": "oe_test_ltp_syscalls_splice07" + }, + { + "name": "oe_test_ltp_syscalls_splice08" + }, + { + "name": "oe_test_ltp_syscalls_splice09" + }, { "name": "oe_test_ltp_syscalls_tee01" }, @@ -3903,6 +3978,12 @@ { "name": "oe_test_ltp_syscalls_unlink08" }, + { + "name": "oe_test_ltp_syscalls_unlink09" + }, + { + "name": "oe_test_ltp_syscalls_unlink10" + }, { "name": "oe_test_ltp_syscalls_unlinkat01" }, @@ -3939,9 +4020,6 @@ { "name": "oe_test_ltp_syscalls_utime01" }, - { - "name": "oe_test_ltp_syscalls_utime01A" - }, { "name": "oe_test_ltp_syscalls_utime02" }, @@ -3957,6 +4035,9 @@ { "name": "oe_test_ltp_syscalls_utime06" }, + { + "name": "oe_test_ltp_syscalls_utime07" + }, { "name": "oe_test_ltp_syscalls_utimes01" }, @@ -4005,18 +4086,12 @@ { "name": "oe_test_ltp_syscalls_waitpid01" }, - { - "name": "oe_test_ltp_syscalls_waitpid02" - }, { "name": "oe_test_ltp_syscalls_waitpid03" }, { "name": "oe_test_ltp_syscalls_waitpid04" }, - { - "name": "oe_test_ltp_syscalls_waitpid05" - }, { "name": "oe_test_ltp_syscalls_waitpid06" }, diff --git a/suite2cases/ltp_tpm_tools.json b/suite2cases/ltp_tpm_tools.json new file mode 100644 index 000000000..3676f4a01 --- /dev/null +++ b/suite2cases/ltp_tpm_tools.json @@ -0,0 +1,43 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_tpm_tools", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_tpm_tools_tpm01" + }, + { + "name": "oe_test_ltp_tpm_tools_tpm02" + }, + { + "name": "oe_test_ltp_tpm_tools_tpm03" + }, + { + "name": "oe_test_ltp_tpm_tools_tpm04" + }, + { + "name": "oe_test_ltp_tpm_tools_tpm05" + }, + { + "name": "oe_test_ltp_tpm_tools_tpm06" + }, + { + "name": "oe_test_ltp_tpm_tools_tpmtoken01" + }, + { + "name": "oe_test_ltp_tpm_tools_tpmtoken02" + }, + { + "name": "oe_test_ltp_tpm_tools_tpmtoken03" + }, + { + "name": "oe_test_ltp_tpm_tools_tpmtoken04" + }, + { + "name": "oe_test_ltp_tpm_tools_tpmtoken05" + }, + { + "name": "oe_test_ltp_tpm_tools_tpm07" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_tracing.json b/suite2cases/ltp_tracing.json new file mode 100644 index 000000000..55f85c3c6 --- /dev/null +++ b/suite2cases/ltp_tracing.json @@ -0,0 +1,34 @@ +{ + "path": "${OET_PATH}/testcases/system-test/ltp-test/ltp_tracing", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_tracing_ftrace_regression01" + }, + { + "name": "oe_test_ltp_tracing_ftrace_regression02" + }, + { + "name": "oe_test_ltp_tracing_ftrace-stress-test" + }, + { + "name": "oe_test_ltp_tracing_dynamic_debug01" + }, + { + "name": "oe_test_ltp_tracing_pt_full_trace_basic" + }, + { + "name": "oe_test_ltp_tracing_pt_snapshot_trace_basic" + }, + { + "name": "oe_test_ltp_tracing_pt_ex_user" + }, + { + "name": "oe_test_ltp_tracing_pt_ex_kernel" + }, + { + "name": "oe_test_ltp_tracing_pt_disable_branch" + } + ] +} \ No newline at end of file diff --git a/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh b/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh index 154e04d53..75c5f99a3 100644 --- a/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh +++ b/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh @@ -45,14 +45,14 @@ function run_test() { echo " #!/bin/bash for i in 1 64 128 256 512 1024 1500 2048 4096 9000 16384 32768;do - netperf -t TCP_STREAM -H ${NODE2_IPV4} -p 49999 -l 60 -- -m $i | tail -n 1|awk '{print $NF}' >> /opt/netperf_tcp_throughput.txt + netperf -t TCP_STREAM -H ${NODE2_IPV4} -p 49999 -l 60 -- -m $i | sed '/^$/d' | tail -n 1|awk '{print $NF}' >> /opt/netperf_tcp_throughput.txt done for i in 1 64 128 256 512 1024 1500 2048 4096 9000 16384 32768;do - netperf -t UDP_STREAM -H ${NODE2_IPV4} -p 49999 -l 60 -- -m $i -R 1 | tail -n 1|awk '{print $NF}' >> /opt/netperf_udp_throughput.txt + netperf -t UDP_STREAM -H ${NODE2_IPV4} -p 49999 -l 60 -- -m $i -R 1 | sed '/^$/d' | tail -n 1|awk '{print $NF}' >> /opt/netperf_udp_throughput.txt done -netperf -t TCP_RR -H ${NODE2_IPV4} -p 49999 | tail -n 1|awk '{print $NF}' >> /opt/netperf_tcp_rr_throughput.txt -netperf -t TCP_CRR -H ${NODE2_IPV4} -p 49999 | tail -n 1|awk '{print $NF}' >> /opt/netperf_tcp_crr_throughput.txt -netperf -t UDP_RR -H ${NODE2_IPV4} -p 49999 | tail -n 1|awk '{print $NF}' >> /opt/netperf_udp_rr_throughput.txt +netperf -t TCP_RR -H ${NODE2_IPV4} -p 49999 | sed '/^$/d' | tail -n 1|awk '{print $NF}' >> /opt/netperf_tcp_rr_throughput.txt +netperf -t TCP_CRR -H ${NODE2_IPV4} -p 49999 | sed '/^$/d' | tail -n 1|awk '{print $NF}' >> /opt/netperf_tcp_crr_throughput.txt +netperf -t UDP_RR -H ${NODE2_IPV4} -p 49999 | sed '/^$/d' | tail -n 1|awk '{print $NF}' >> /opt/netperf_udp_rr_throughput.txt " > test_netperf.sh chmod 755 test_netperf.sh SSH_CMD "netserver -p 49999" ${NODE2_IPV4} ${NODE2_PASSWORD} ${NODE2_USER} diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh index 32b44922d..1d9568b32 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2011-0999 thp01 -I 120 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2011-0999 thp01 -I 120 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh index e98feb625..036fb5be9 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2011-2183 ksm05 -I 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2011-2183 ksm05 -I 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh index 9e3e2b376..705dee886 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2011-2496 vma03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2011-2496 vma03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh index de62c5503..47cc77ad5 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2012-0957 uname04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2012-0957 uname04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh index 8b8781fe9..ce8fe0d44 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2014-0196 cve-2014-0196 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2014-0196 cve-2014-0196 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh index eeb5f9ec0..88c157731 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2015-0235 gethostbyname_r01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2015-0235 gethostbyname_r01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh index 599e5d91f..775f60a94 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2015-3290 cve-2015-3290 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2015-3290 cve-2015-3290 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh index 81b686826..b754830ac 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2015-7550 keyctl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2015-7550 keyctl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh index e5d43b821..083e3d2cc 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2016-10044 cve-2016-10044 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2016-10044 cve-2016-10044 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh index 1ff8bc50a..05644ffe0 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2016-4470 keyctl01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2016-4470 keyctl01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh index 18b8bb847..f29e0b7c1 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2016-4997 setsockopt03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2016-4997 setsockopt03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh index a2cda6d65..7ed6f0413 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2016-5195 dirtyc0w - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2016-5195 dirtyc0w failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh index 5efcf3e06..6e7d527e4 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2016-7042 cve-2016-7042 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2016-7042 cve-2016-7042 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh index 4dece0f6c..14d4f0c65 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2016-7117 cve-2016-7117 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2016-7117 cve-2016-7117 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh index bca2f93fd..2ae874976 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2016-8655 setsockopt06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2016-8655 setsockopt06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh index c47a0dbfa..7dbe5e1bc 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2016-9604 keyctl08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2016-9604 keyctl08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh index 63d7aebf0..793f769c7 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2016-9793 setsockopt04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2016-9793 setsockopt04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh index 522cb181a..55ea644da 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-1000111 setsockopt07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-1000111 setsockopt07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh index 856c16bc8..7192c650f 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-1000112 setsockopt05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-1000112 setsockopt05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh index 950469267..74816caea 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-1000364 stack_clash - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-1000364 stack_clash failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh index 65eeea07a..5c03c5aa0 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-1000380 snd_timer01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-1000380 snd_timer01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh index aba8a0fa6..ad56d2bb8 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-1000405 thp04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-1000405 thp04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh index 2a03dfa5c..a8a8120d5 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-10661 timerfd_settime02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-10661 timerfd_settime02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh index 7a5811d47..363e51f59 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-12192 keyctl07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-12192 keyctl07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh index b13fb86d0..6b3c9c571 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-12193 add_key04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-12193 add_key04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh index 25b6009b3..7208ef846 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-15274 add_key02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-15274 add_key02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh index e290f999c..a60b53292 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-15299 request_key03 -b cve-2017-15299 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-15299 request_key03 -b cve-2017-15299 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh index 827601b17..89a4f2ed9 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-15537 ptrace07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-15537 ptrace07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh index d8745b183..1b3286163 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-15649 fanout01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-15649 fanout01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh index 792ea407d..44f24ef8d 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-15951 request_key03 -b cve-2017-15951 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-15951 request_key03 -b cve-2017-15951 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh index 4c24e45a7..73d278c2e 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-16939 cve-2017-16939 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-16939 cve-2017-16939 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh index 824ca4be9..8999419a2 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-16995 bpf_prog03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-16995 bpf_prog03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh index 5c6b8b23a..fcfa701e7 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-17052 cve-2017-17052 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-17052 cve-2017-17052 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh index 484664e8c..d4322e4e2 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-17053 cve-2017-17053 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-17053 cve-2017-17053 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh index 35afa35ec..fef5e942a 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-17712 sendmsg03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-17712 sendmsg03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh index 0cf4e5205..800117a93 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-17805 af_alg02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-17805 af_alg02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh index 3823ecd01..2bd2ed7d3 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-17806 af_alg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-17806 af_alg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh index 7a57ae277..ffd5e81a7 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-17807 request_key04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-17807 request_key04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh index aff9e7876..74736f589 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-18075 pcrypt_aead01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-18075 pcrypt_aead01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh index 7463806a7..a7e300ef2 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-18344 timer_create03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-18344 timer_create03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh index b72e93f8b..276855491 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-2618 cve-2017-2618 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-2618 cve-2017-2618 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh index 1e41a424c..f34ab9b28 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-2636 pty05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-2636 pty05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh index 3c74edec1..799470e48 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-2671 cve-2017-2671 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-2671 cve-2017-2671 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh index c592fdaad..2ea50e7e7 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-5754 meltdown - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-5754 meltdown failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh index c64f7046b..e25c56fd0 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-6951 request_key05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-6951 request_key05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh index 416aa7dcb..844f4aa42 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-7308 setsockopt02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-7308 setsockopt02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh index 3a4fe914d..c13d514d5 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-7472 keyctl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-7472 keyctl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh index b9242230b..a3d64bf95 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-7616 set_mempolicy05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-7616 set_mempolicy05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh index 95c48694d..96b09d379 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2017-8890 accept02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2017-8890 accept02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh index f96ccb361..672fd881b 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-1000001 realpath01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-1000001 realpath01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh index ef257f1ff..7610839fb 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-1000199 ptrace08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-1000199 ptrace08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh index 31454f7ee..474ea1060 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-1000204 ioctl_sg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-1000204 ioctl_sg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh index 297c7bbbd..2c2bd02a2 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-10124 kill13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-10124 kill13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh index 5e4bc2b9d..f9a7d68bc 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-11508 adjtimex03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-11508 adjtimex03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh index 248597817..519b06f72 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-12896 timer_settime03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-12896 timer_settime03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh index 75350d97c..82e73e124 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-13405 creat09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-13405 creat09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh index 795b6c64f..2bcd947e2 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-18445 bpf_prog04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-18445 bpf_prog04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh index 7a9567d5f..c52dbb971 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-18559 bind06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-18559 bind06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh index 02ce9a798..24b317f62 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-18955 userns08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-18955 userns08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh index 9a1303390..5fd1bf4ab 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-19854 crypto_user01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-19854 crypto_user01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh index 787fbd960..d5fe7c594 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-5803 sctp_big_chunk - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-5803 sctp_big_chunk failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh index a60c71a4e..39029260c 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-6927 futex_cmp_requeue02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-6927 futex_cmp_requeue02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh index 53737e30b..38a6db50c 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-7566 snd_seq01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-7566 snd_seq01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh index e0fc43556..a453ee204 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-8897 ptrace09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-8897 ptrace09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh index 9944252f0..043bdbca3 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2018-9568 connect02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2018-9568 connect02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh index 2d9226690..3b820bf7f 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2019-8912 af_alg07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2019-8912 af_alg07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh index e65524d0e..9576f0294 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2020-11494 pty04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2020-11494 pty04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh index 19187ddce..fa4b87296 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2020-14386 sendto03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2020-14386 sendto03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh index c67e98b7d..428607eb1 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2020-14416 pty03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2020-14416 pty03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh index 254da5e49..b2b8b33f4 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2020-25704 perf_event_open03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2020-25704 perf_event_open03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh index 55d6416df..482124361 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2020-25705 icmp_rate_limit01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2020-25705 icmp_rate_limit01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh index 6355ba157..dc96e83b9 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2020-29373 io_uring02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2020-29373 io_uring02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh index 80290d85a..6bfd5064b 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2020-36557 pty06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2020-36557 pty06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh index b36d06552..33426ea89 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-22555 setsockopt08 -i 100 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-22555 setsockopt08 -i 100 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh index 94c678b38..6d81c8f81 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-22600 setsockopt09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-22600 setsockopt09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh index 453f83ebe..6297f59a9 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-26708 vsock01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-26708 vsock01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh index d8887d79b..c16686a50 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-3444 bpf_prog05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-3444 bpf_prog05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh index 857b8c1ac..b6badfd44 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-3609 can_bcm01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-3609 can_bcm01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh index afdc8870b..71bb1ad56 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-38604 mq_notify03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-38604 mq_notify03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh index 5bfdfe32c..23608e11e 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-4034 execve06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-4034 execve06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh index 9829460d0..6e829b222 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-4197_1 cgroup_core01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-4197_1 cgroup_core01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh index 973af2b35..d9a1a71aa 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-4197_2 cgroup_core02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-4197_2 cgroup_core02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh index 15ed69797..21656c40c 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2021-4204 bpf_prog06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2021-4204 bpf_prog06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh index 4b2edf913..f4f53f29b 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2022-0185 fsconfig03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2022-0185 fsconfig03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh index c869af5d0..663125979 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2022-0847 dirtypipe - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2022-0847 dirtypipe failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh index 67a5db7e8..1852accdf 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2022-23222 bpf_prog07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2022-23222 bpf_prog07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh index a7023a749..fe98a4e9e 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2022-2590 dirtyc0w_shmem - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2022-2590 dirtyc0w_shmem failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh index 46a94c3b5..0b285d645 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2022-4378 cve-2022-4378 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2022-4378 cve-2022-4378 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh index f8bbe203a..316231ff8 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2023-0461 setsockopt10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2023-0461 setsockopt10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh index e48a3691d..852c20a82 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2023-1829 tcindex01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2023-1829 tcindex01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh index a5b01fdf0..3a9e882a3 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cve -s cve-2023-31248 nft02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cve cve-2023-31248 nft02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_DIR.sh b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_DIR.sh new file mode 100644 index 000000000..0ca9b5f3d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_DIR.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_Makefile INSTALL_DIR := runtest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f Makefile -s INSTALL_DIR := runtest + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "Makefile INSTALL_DIR := runtest failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_MODE.sh b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_MODE.sh new file mode 100644 index 000000000..89c0605f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_MODE.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_Makefile INSTALL_MODE := 00644 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f Makefile -s INSTALL_MODE := 00644 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "Makefile INSTALL_MODE := 00644 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_TARGETS.sh b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_TARGETS.sh new file mode 100644 index 000000000..12ce2601e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_INSTALL_TARGETS.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_Makefile INSTALL_TARGETS := $(filter-out $(UNWANTED_FILES),$(notdir $(patsubst $(abs_srcdir)/%,%,$(sort $(wildcard $(abs_srcdir)/*))))) +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f Makefile -s INSTALL_TARGETS := $(filter-out $(UNWANTED_FILES),$(notdir $(patsubst $(abs_srcdir)/%,%,$(sort $(wildcard $(abs_srcdir)/*))))) + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "Makefile INSTALL_TARGETS := $(filter-out $(UNWANTED_FILES),$(notdir $(patsubst $(abs_srcdir)/%,%,$(sort $(wildcard $(abs_srcdir)/*))))) failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_MAKE_TARGETS.sh b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_MAKE_TARGETS.sh new file mode 100644 index 000000000..b42b97d22 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_MAKE_TARGETS.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_Makefile MAKE_TARGETS := +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f Makefile -s MAKE_TARGETS := + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "Makefile MAKE_TARGETS := failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_UNWANTED_FILES.sh b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_UNWANTED_FILES.sh new file mode 100644 index 000000000..590f40b7b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_UNWANTED_FILES.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_Makefile UNWANTED_FILES := Makefile CVS STAX +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f Makefile -s UNWANTED_FILES := Makefile CVS STAX + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "Makefile UNWANTED_FILES := Makefile CVS STAX failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_include.sh b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_include.sh new file mode 100644 index 000000000..de1b3b8c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_include.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_Makefile include $(top_srcdir)/include/mk/generic_leaf_target.mk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f Makefile -s include $(top_srcdir)/include/mk/generic_leaf_target.mk + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "Makefile include $(top_srcdir)/include/mk/generic_leaf_target.mk failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_top_srcdir.sh b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_top_srcdir.sh new file mode 100644 index 000000000..6a550efbf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_Makefile/oe_test_ltp_Makefile_top_srcdir.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_Makefile top_srcdir ?= .. +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f Makefile -s top_srcdir ?= .. + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "Makefile top_srcdir ?= .. failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_bcm01.sh b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_bcm01.sh index 92c6948c4..50aa06a62 100644 --- a/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_bcm01.sh +++ b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_bcm01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f can -s can_bcm01 can_bcm01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "can can_bcm01 can_bcm01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_filter.sh b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_filter.sh index 7bf4b46b9..819b3af03 100644 --- a/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_filter.sh +++ b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_filter.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f can -s can_filter can_filter - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "can can_filter can_filter failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_rcv_own_msgs.sh b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_rcv_own_msgs.sh index e7869cf23..bf9ca614d 100644 --- a/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_rcv_own_msgs.sh +++ b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_rcv_own_msgs.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f can -s can_rcv_own_msgs can_rcv_own_msgs - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "can can_rcv_own_msgs can_rcv_own_msgs failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_cap_bounds/oe_test_ltp_cap_bounds_Cap_bounds.sh b/testcases/system-test/ltp-test/ltp_cap_bounds/oe_test_ltp_cap_bounds_Cap_bounds.sh index de5eda4f6..7792cc48a 100644 --- a/testcases/system-test/ltp-test/ltp_cap_bounds/oe_test_ltp_cap_bounds_Cap_bounds.sh +++ b/testcases/system-test/ltp-test/ltp_cap_bounds/oe_test_ltp_cap_bounds_Cap_bounds.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cap_bounds -s Cap_bounds run_capbounds.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cap_bounds Cap_bounds run_capbounds.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_cap_bounds.sh b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_cap_bounds.sh new file mode 100644 index 000000000..899e5dbca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_cap_bounds.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_capability cap_bounds run_capbounds.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f capability -s cap_bounds run_capbounds.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "capability cap_bounds run_capbounds.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps01.sh b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps01.sh new file mode 100644 index 000000000..be0f29a75 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_capability check_keepcaps01 check_keepcaps 1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f capability -s check_keepcaps01 check_keepcaps 1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "capability check_keepcaps01 check_keepcaps 1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps02.sh b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps02.sh new file mode 100644 index 000000000..d583a00ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_capability check_keepcaps02 check_keepcaps 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f capability -s check_keepcaps02 check_keepcaps 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "capability check_keepcaps02 check_keepcaps 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps03.sh b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps03.sh new file mode 100644 index 000000000..91f01c15f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_check_keepcaps03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_capability check_keepcaps03 check_keepcaps 3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f capability -s check_keepcaps03 check_keepcaps 3 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "capability check_keepcaps03 check_keepcaps 3 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_filecaps.sh b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_filecaps.sh new file mode 100644 index 000000000..1c7348232 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_capability/oe_test_ltp_capability_filecaps.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_capability filecaps filecapstest.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f capability -s filecaps filecapstest.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "capability filecaps filecapstest.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ar_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ar_sh.sh index 9d774cf21..1d8715b49 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ar_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ar_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s ar_sh export TCdat=$LTPROOT/testcases/bin; ar01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands ar_sh export TCdat=$LTPROOT/testcases/bin; ar01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cp01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cp01_sh.sh index 996fd21e0..4e674c1e9 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cp01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cp01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s cp01_sh cp_tests.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands cp01_sh cp_tests.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cpio01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cpio01_sh.sh index 595bacf99..4848bd24c 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cpio01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cpio01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s cpio01_sh cpio_tests.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands cpio01_sh cpio_tests.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_df01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_df01_sh.sh index 26ab0059b..3c090006c 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_df01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_df01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s df01_sh df01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands df01_sh df01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_du01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_du01_sh.sh index 3a1e2312f..75a6fc31e 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_du01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_du01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s du01_sh du01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands du01_sh du01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_file01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_file01_sh.sh index 5967a915e..298c19234 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_file01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_file01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s file01_sh file01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands file01_sh file01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gdb01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gdb01_sh.sh index a828b1756..b1fb49034 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gdb01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gdb01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s gdb01_sh gdb01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands gdb01_sh gdb01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gzip01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gzip01_sh.sh index 0f722c65b..f71edfb53 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gzip01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gzip01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s gzip01_sh gzip_tests.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands gzip01_sh gzip_tests.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_insmod01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_insmod01_sh.sh index 3ce5665f3..98c0232bf 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_insmod01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_insmod01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s insmod01_sh insmod01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands insmod01_sh insmod01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_keyctl01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_keyctl01_sh.sh index 292bc28a6..f2580f4c5 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_keyctl01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_keyctl01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s keyctl01_sh keyctl01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands keyctl01_sh keyctl01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ld01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ld01_sh.sh index c854deb0f..2e0d5145f 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ld01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ld01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s ld01_sh ld01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands ld01_sh ld01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ldd01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ldd01_sh.sh index 79d741e4c..6d80ca623 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ldd01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ldd01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s ldd01_sh ldd01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands ldd01_sh ldd01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ln01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ln01_sh.sh index 7183a0b50..3cac83015 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ln01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ln01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s ln01_sh ln_tests.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands ln01_sh ln_tests.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_logrotate_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_logrotate_sh.sh index 775ed53b8..7237c9058 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_logrotate_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_logrotate_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s logrotate_sh export TCdat=$LTPROOT/testcases/bin; logrotate_tests.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands logrotate_sh export TCdat=$LTPROOT/testcases/bin; logrotate_tests.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_lsmod01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_lsmod01_sh.sh index 236ae12b7..716e5c350 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_lsmod01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_lsmod01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s lsmod01_sh lsmod01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands lsmod01_sh lsmod01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkdir01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkdir01_sh.sh index 85f162e62..359629f18 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkdir01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkdir01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkdir01_sh mkdir_tests.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkdir01_sh mkdir_tests.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_btrfs_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_btrfs_sh.sh index 3f62dafea..c8ec0eeae 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_btrfs_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_btrfs_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_btrfs_sh mkfs01.sh -f btrfs - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_btrfs_sh mkfs01.sh -f btrfs failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext2_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext2_sh.sh index 0609e6e64..76f9e4bc8 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext2_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext2_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_ext2_sh mkfs01.sh -f ext2 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_ext2_sh mkfs01.sh -f ext2 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext3_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext3_sh.sh index 3b5e0dd61..2aff7f872 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext3_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext3_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_ext3_sh mkfs01.sh -f ext3 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_ext3_sh mkfs01.sh -f ext3 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext4_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext4_sh.sh index 8b187eef7..24c77962f 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext4_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext4_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_ext4_sh mkfs01.sh -f ext4 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_ext4_sh mkfs01.sh -f ext4 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_minix_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_minix_sh.sh index 8ce90e09a..e68ae8eb4 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_minix_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_minix_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_minix_sh mkfs01.sh -f minix - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_minix_sh mkfs01.sh -f minix failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_msdos_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_msdos_sh.sh index f3a6ed373..48fc59610 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_msdos_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_msdos_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_msdos_sh mkfs01.sh -f msdos - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_msdos_sh mkfs01.sh -f msdos failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ntfs_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ntfs_sh.sh index fde6e647d..5a945b19d 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ntfs_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ntfs_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_ntfs_sh mkfs01.sh -f ntfs - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_ntfs_sh mkfs01.sh -f ntfs failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_sh.sh index f3b7b08c8..abe0f64ad 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_sh mkfs01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_sh mkfs01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_vfat_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_vfat_sh.sh index 2c56f81f8..a9d111613 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_vfat_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_vfat_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_vfat_sh mkfs01.sh -f vfat - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_vfat_sh mkfs01.sh -f vfat failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_xfs_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_xfs_sh.sh index 301141795..41a3139af 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_xfs_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_xfs_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkfs01_xfs_sh mkfs01.sh -f xfs - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkfs01_xfs_sh mkfs01.sh -f xfs failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkswap01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkswap01_sh.sh index 7c4afbf04..dc1bb46cf 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkswap01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkswap01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mkswap01_sh mkswap01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mkswap01_sh mkswap01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mv01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mv01_sh.sh index 5aa9f0955..64b4340c2 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mv01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mv01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s mv01_sh mv_tests.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands mv01_sh mv_tests.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_nm01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_nm01_sh.sh index 55b49f019..d777f6729 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_nm01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_nm01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s nm01_sh nm01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands nm01_sh nm01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_shell_test01.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_shell_test01.sh index 942dde3ed..6eab7fd60 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_shell_test01.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_shell_test01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s shell_test01 echo "SUCCESS" | shell_pipe01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands shell_test01 echo "SUCCESS" | shell_pipe01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl01_sh.sh index 6d20b024a..8cd650ab0 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s sysctl01_sh sysctl01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands sysctl01_sh sysctl01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl02_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl02_sh.sh index d5f700e24..094c6ccd7 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl02_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl02_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s sysctl02_sh sysctl02.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands sysctl02_sh sysctl02.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_tar01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_tar01_sh.sh index 34e4c7d1f..16fd594b5 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_tar01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_tar01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s tar01_sh tar_tests.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands tar01_sh tar_tests.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unshare01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unshare01_sh.sh index 8f3b7bfc7..b9d643a27 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unshare01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unshare01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s unshare01_sh unshare01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands unshare01_sh unshare01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unzip01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unzip01_sh.sh index 556409913..401654319 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unzip01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unzip01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s unzip01_sh unzip01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands unzip01_sh unzip01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_wc01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_wc01_sh.sh index 7406bd113..0f32c1f26 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_wc01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_wc01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s wc01_sh wc01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands wc01_sh wc01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_which01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_which01_sh.sh index dfa262f36..516450323 100644 --- a/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_which01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_which01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f commands -s which01_sh which01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "commands which01_sh which01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_gettime03.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_gettime03.sh index cbe92e227..495daecf9 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_gettime03.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_gettime03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s clock_gettime03 clock_gettime03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers clock_gettime03 clock_gettime03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_nanosleep03.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_nanosleep03.sh index c50228a39..aca74b64d 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_nanosleep03.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_nanosleep03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s clock_nanosleep03 clock_nanosleep03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers clock_nanosleep03 clock_nanosleep03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_clone.sh index a9e47474f..3d27c5957 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mesgq_nstest_clone mesgq_nstest -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mesgq_nstest_clone mesgq_nstest -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_none.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_none.sh index 21f3ec2ce..7b1e0fe59 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_none.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mesgq_nstest_none mesgq_nstest -m none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mesgq_nstest_none mesgq_nstest -m none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_unshare.sh index e492f810f..c63b267fe 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mesgq_nstest_unshare mesgq_nstest -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mesgq_nstest_unshare mesgq_nstest -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns01.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns01.sh index 002242b18..3334d9440 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns01.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mountns01 mountns01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mountns01 mountns01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns02.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns02.sh index 1d6a21b7f..c1c3a7d00 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns02.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mountns02 mountns02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mountns02 mountns02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns03.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns03.sh index 856e7153a..71a086446 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns03.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mountns03 mountns03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mountns03 mountns03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns04.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns04.sh index ff70c39f7..f982f42e8 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns04.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mountns04 mountns04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mountns04 mountns04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01.sh index ded085e5a..20ac5cb61 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_01 mqns_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_01 mqns_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_clone.sh index fcbf2b6aa..e1f31b14a 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_01_clone mqns_01 -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_01_clone mqns_01 -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_unshare.sh index ef3f8963c..3d246b7b7 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_01_unshare mqns_01 -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_01_unshare mqns_01 -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02.sh index aa0d61db2..bb6ccd936 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_02 mqns_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_02 mqns_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_clone.sh index c4c0540ce..9b3a9b511 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_02_clone mqns_02 -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_02_clone mqns_02 -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_unshare.sh index de94c830f..c0b176a1e 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_02_unshare mqns_02 -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_02_unshare mqns_02 -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_clone.sh index 52b7902ac..a68bc20e4 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_03_clone mqns_03 -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_03_clone mqns_03 -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_unshare.sh index a20b5fdda..82a7a5c7e 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_03_unshare mqns_03 -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_03_unshare mqns_03 -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_clone.sh index 7cd0188d1..43eba79a1 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_04_clone mqns_04 -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_04_clone mqns_04 -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_unshare.sh index 873fbdad6..d6bb1bb7a 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s mqns_04_unshare mqns_04 -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers mqns_04_unshare mqns_04 -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_msg_comm.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_msg_comm.sh index 8c6c21d1b..227d83e33 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_msg_comm.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_msg_comm.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s msg_comm msg_comm - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers msg_comm msg_comm failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_ioctl.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_ioctl.sh index b5b7c9d56..a34b27fb0 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_ioctl.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_ioctl.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_breakns_ip_ipv4_ioctl netns_breakns.sh -I - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_breakns_ip_ipv4_ioctl netns_breakns.sh -I failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_netlink.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_netlink.sh index 003e73c24..8c11bc414 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_netlink.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_netlink.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_breakns_ip_ipv4_netlink netns_breakns.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_breakns_ip_ipv4_netlink netns_breakns.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_ioctl.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_ioctl.sh index 026191b0d..427124f8b 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_ioctl.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_ioctl.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_breakns_ip_ipv6_ioctl netns_breakns.sh -6I - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_breakns_ip_ipv6_ioctl netns_breakns.sh -6I failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_netlink.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_netlink.sh index 551829527..2b3a60746 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_netlink.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_netlink.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_breakns_ip_ipv6_netlink netns_breakns.sh -6 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_breakns_ip_ipv6_netlink netns_breakns.sh -6 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_ioctl.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_ioctl.sh index 11d470e30..e9a6b50af 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_ioctl.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_ioctl.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_breakns_ns_exec_ipv4_ioctl netns_breakns.sh -eI - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_breakns_ns_exec_ipv4_ioctl netns_breakns.sh -eI failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_netlink.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_netlink.sh index 096e4e9fa..bae716868 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_netlink.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_netlink.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_breakns_ns_exec_ipv4_netlink netns_breakns.sh -e - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_breakns_ns_exec_ipv4_netlink netns_breakns.sh -e failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_ioctl.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_ioctl.sh index 22f42a5ae..a9b2c1578 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_ioctl.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_ioctl.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_breakns_ns_exec_ipv6_ioctl netns_breakns.sh -6eI - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_breakns_ns_exec_ipv6_ioctl netns_breakns.sh -6eI failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_netlink.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_netlink.sh index 791c7ffd0..a1c4c540f 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_netlink.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_netlink.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_breakns_ns_exec_ipv6_netlink netns_breakns.sh -6e - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_breakns_ns_exec_ipv6_netlink netns_breakns.sh -6e failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_ioctl.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_ioctl.sh index 2ff89f60c..3a19279cf 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_ioctl.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_ioctl.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_comm_ip_ipv4_ioctl netns_comm.sh -I - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_comm_ip_ipv4_ioctl netns_comm.sh -I failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_netlink.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_netlink.sh index 52b625c45..579a06727 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_netlink.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_netlink.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_comm_ip_ipv4_netlink netns_comm.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_comm_ip_ipv4_netlink netns_comm.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_ioctl.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_ioctl.sh index e869ace55..bd22abd78 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_ioctl.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_ioctl.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_comm_ip_ipv6_ioctl netns_comm.sh -6I - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_comm_ip_ipv6_ioctl netns_comm.sh -6I failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_netlink.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_netlink.sh index 9f3dec16a..e8e0de01b 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_netlink.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_netlink.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_comm_ip_ipv6_netlink netns_comm.sh -6 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_comm_ip_ipv6_netlink netns_comm.sh -6 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_ioctl.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_ioctl.sh index d4ac04e8a..648890d80 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_ioctl.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_ioctl.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_comm_ns_exec_ipv4_ioctl netns_comm.sh -eI - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_comm_ns_exec_ipv4_ioctl netns_comm.sh -eI failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_netlink.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_netlink.sh index 3a39480eb..a18d6c7ec 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_netlink.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_netlink.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_comm_ns_exec_ipv4_netlink netns_comm.sh -e - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_comm_ns_exec_ipv4_netlink netns_comm.sh -e failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_ioctl.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_ioctl.sh index 2a79ebb9c..5c55130bb 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_ioctl.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_ioctl.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_comm_ns_exec_ipv6_ioctl netns_comm.sh -6eI - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_comm_ns_exec_ipv6_ioctl netns_comm.sh -6eI failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_netlink.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_netlink.sh index 824102efd..bd4a380c2 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_netlink.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_netlink.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_comm_ns_exec_ipv6_netlink netns_comm.sh -6e - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_comm_ns_exec_ipv6_netlink netns_comm.sh -6e failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_netlink.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_netlink.sh index 0cf865fe8..c075faa68 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_netlink.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_netlink.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_netlink netns_netlink - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_netlink netns_netlink failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_sysfs.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_sysfs.sh index 99dae0827..8b2fadcbb 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_sysfs.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_sysfs.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s netns_sysfs netns_sysfs.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers netns_sysfs netns_sysfs.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns01.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns01.sh index 822f05bd9..7a03fc8c3 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns01.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns01 pidns01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns01 pidns01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns02.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns02.sh index c08f9882f..cabb708ff 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns02.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns02 pidns02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns02 pidns02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns03.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns03.sh index 86117d963..ed3da8d7d 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns03.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns03 pidns03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns03 pidns03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns04.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns04.sh index fa1410e19..435bcd1f1 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns04.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns04 pidns04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns04 pidns04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns05.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns05.sh index cd746a601..bdec7892b 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns05.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns05 pidns05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns05 pidns05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns06.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns06.sh index e632e8f6c..c877441ec 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns06.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns06 pidns06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns06 pidns06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns10.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns10.sh index 600f8bed5..570a778ea 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns10.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns10 pidns10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns10 pidns10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns12.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns12.sh index 1fa7dd479..a63fbaa84 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns12.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns12 pidns12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns12 pidns12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns13.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns13.sh index 6f26e5e51..3d9f1fd35 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns13.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns13 pidns13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns13 pidns13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns16.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns16.sh index 8656a4a42..d0b79f46d 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns16.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns16 pidns16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns16 pidns16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns17.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns17.sh index 7a25b1969..264540fd5 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns17.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns17.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns17 pidns17 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns17 pidns17 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns20.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns20.sh index 068d031d1..fc60e0669 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns20.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns20.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns20 pidns20 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns20 pidns20 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns30.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns30.sh index 171e8bbe6..b873ad739 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns30.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns30.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns30 pidns30 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns30 pidns30 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns31.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns31.sh index 7eb5b5e18..95275db17 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns31.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns31.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns31 pidns31 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns31 pidns31 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns32.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns32.sh index 63a90eaa6..a0564b4ed 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns32.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns32.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s pidns32 pidns32 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers pidns32 pidns32 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_comm.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_comm.sh index 6d2712cce..11ea20786 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_comm.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_comm.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s sem_comm sem_comm - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers sem_comm sem_comm failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_clone.sh index 8104065b7..d5c61740f 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s sem_nstest_clone sem_nstest -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers sem_nstest_clone sem_nstest -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_none.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_none.sh index 35f1fc1a6..de07e5940 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_none.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s sem_nstest_none sem_nstest -m none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers sem_nstest_none sem_nstest -m none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_unshare.sh index 13c42b579..15b9014ea 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s sem_nstest_unshare sem_nstest -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers sem_nstest_unshare sem_nstest -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_clone.sh index 0a3cc7177..0febaa69f 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s semtest_2ns_clone semtest_2ns -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers semtest_2ns_clone semtest_2ns -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_none.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_none.sh index 8d55bb500..ff958991a 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_none.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s semtest_2ns_none semtest_2ns -m none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers semtest_2ns_none semtest_2ns -m none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_unshare.sh index b7f2d98a5..a87183c41 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s semtest_2ns_unshare semtest_2ns -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers semtest_2ns_unshare semtest_2ns -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shm_comm.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shm_comm.sh index 1fb1fe70b..4f0be841f 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shm_comm.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shm_comm.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s shm_comm shm_comm - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers shm_comm shm_comm failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_clone.sh index bb3a66f42..0a09febf6 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s shmem_2nstest_clone shmem_2nstest -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers shmem_2nstest_clone shmem_2nstest -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_none.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_none.sh index bef7b0a4b..021062b3f 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_none.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s shmem_2nstest_none shmem_2nstest -m none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers shmem_2nstest_none shmem_2nstest -m none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_unshare.sh index 44c958e61..b1caab98a 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s shmem_2nstest_unshare shmem_2nstest -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers shmem_2nstest_unshare shmem_2nstest -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_clone.sh index c9a4e97bd..12269aab8 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s shmnstest_clone shmnstest -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers shmnstest_clone shmnstest -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_none.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_none.sh index f5ddc014f..acf2a570d 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_none.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s shmnstest_none shmnstest -m none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers shmnstest_none shmnstest -m none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_unshare.sh index befe8e85a..877ce1b33 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s shmnstest_unshare shmnstest -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers shmnstest_unshare shmnstest -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sysinfo03.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sysinfo03.sh index 920a62493..372a8828a 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sysinfo03.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sysinfo03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s sysinfo03 sysinfo03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers sysinfo03 sysinfo03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timens01.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timens01.sh index 135654d79..525271f85 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timens01.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timens01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s timens01 timens01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers timens01 timens01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timerfd04.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timerfd04.sh index 4be65f9b8..08958cdb5 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timerfd04.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timerfd04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s timerfd04 timerfd04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers timerfd04 timerfd04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns01.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns01.sh index f7b6d6f74..cd0082399 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns01.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s userns01 userns01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers userns01 userns01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns02.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns02.sh index efba6e1fb..f0b3829c2 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns02.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s userns02 userns02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers userns02 userns02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns03.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns03.sh index d2df215b1..f10fd2c37 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns03.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s userns03 userns03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers userns03 userns03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns04.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns04.sh index 0970083c8..8410c7d15 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns04.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s userns04 userns04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers userns04 userns04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns05.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns05.sh index 64eb69a11..1e74d7f87 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns05.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s userns05 userns05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers userns05 userns05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns06.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns06.sh index 47873f906..b52b0ffe6 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns06.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s userns06 userns06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers userns06 userns06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns07.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns07.sh index 5f250ba28..75b5a612d 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns07.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s userns07 userns07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers userns07 userns07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns08.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns08.sh index b6936d2d6..5993ebb5e 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns08.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s userns08 userns08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers userns08 userns08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname01.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname01.sh index 4f599f063..b9c29f02c 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname01.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s utsname01 utsname01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers utsname01 utsname01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname02.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname02.sh index e060dc55f..9dbf5edc5 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname02.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s utsname02 utsname02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers utsname02 utsname02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_clone.sh index 975b2bd7a..978f41946 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s utsname03_clone utsname03 -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers utsname03_clone utsname03 -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_unshare.sh index 95ec58742..c61405e02 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s utsname03_unshare utsname03 -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers utsname03_unshare utsname03 -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_clone.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_clone.sh index fd7166dc5..3ee45fc35 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_clone.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_clone.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s utsname04_clone utsname04 -m clone - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers utsname04_clone utsname04 -m clone failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_unshare.sh b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_unshare.sh index 0c907eb31..79781c7cb 100644 --- a/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_unshare.sh +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_unshare.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f containers -s utsname04_unshare utsname04 -m unshare - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "containers utsname04_unshare utsname04 -m unshare failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup.sh index 582d5508f..54a914e5a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup cgroup_regression_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup cgroup_regression_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core01.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core01.sh index 0d25ccfb6..a03525b65 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core01.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_core01 cgroup_core01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_core01 cgroup_core01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core02.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core02.sh index 62ee64d44..83a50960b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core02.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_core02 cgroup_core02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_core02 cgroup_core02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core03.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core03.sh index 31d24c2c0..a67dbf725 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core03.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_core03 cgroup_core03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_core03 cgroup_core03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_blkio.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_blkio.sh index b8f36a3f8..f3c2c6d14 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_blkio.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_blkio.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_blkio cgroup_fj_function.sh blkio - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_blkio cgroup_fj_function.sh blkio failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpu.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpu.sh index cb112bed0..9a9100fe0 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpu.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpu.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_cpu cgroup_fj_function.sh cpu - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_cpu cgroup_fj_function.sh cpu failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuacct.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuacct.sh index 9918a04a5..339e509c5 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuacct.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuacct.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_cpuacct cgroup_fj_function.sh cpuacct - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_cpuacct cgroup_fj_function.sh cpuacct failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuset.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuset.sh index ddc384bf2..c47e25f99 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuset.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuset.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_cpuset cgroup_fj_function.sh cpuset - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_cpuset cgroup_fj_function.sh cpuset failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_debug.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_debug.sh index a5f5cae68..676ccb774 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_debug.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_debug.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_debug cgroup_fj_function.sh debug - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_debug cgroup_fj_function.sh debug failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_devices.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_devices.sh index 607d44982..43522efdc 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_devices.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_devices.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_devices cgroup_fj_function.sh devices - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_devices cgroup_fj_function.sh devices failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_freezer.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_freezer.sh index 83126ba23..f2431996e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_freezer.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_freezer.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_freezer cgroup_fj_function.sh freezer - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_freezer cgroup_fj_function.sh freezer failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_hugetlb.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_hugetlb.sh index cc4dac5c8..6fd002864 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_hugetlb.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_hugetlb.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_hugetlb cgroup_fj_function.sh hugetlb - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_hugetlb cgroup_fj_function.sh hugetlb failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_memory.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_memory.sh index caf0cd96d..88f50e38d 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_memory.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_memory.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_memory cgroup_fj_function.sh memory - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_memory cgroup_fj_function.sh memory failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_cls.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_cls.sh index 6bd9c79f3..cee48a413 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_cls.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_cls.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_net_cls cgroup_fj_function.sh net_cls - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_net_cls cgroup_fj_function.sh net_cls failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_prio.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_prio.sh index 1ed864bb5..b026a3094 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_prio.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_prio.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_net_prio cgroup_fj_function.sh net_prio - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_net_prio cgroup_fj_function.sh net_prio failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_perf_event.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_perf_event.sh index f07e95660..5d1a82551 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_perf_event.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_perf_event.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_function_perf_event cgroup_fj_function.sh perf_event - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_perf_event cgroup_fj_function.sh perf_event failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_each.sh index 6587f4be1..29730cf6c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_10_3_each cgroup_fj_stress.sh blkio 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_10_3_each cgroup_fj_stress.sh blkio 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_none.sh index 05c49c179..4bc272ad7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_10_3_none cgroup_fj_stress.sh blkio 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_10_3_none cgroup_fj_stress.sh blkio 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_one.sh index 62b724a9f..c313cd034 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_10_3_one cgroup_fj_stress.sh blkio 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_10_3_one cgroup_fj_stress.sh blkio 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_each.sh index d5025d09c..071277bf2 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_1_200_each cgroup_fj_stress.sh blkio 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_1_200_each cgroup_fj_stress.sh blkio 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_none.sh index 42f42b10d..2745f8675 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_1_200_none cgroup_fj_stress.sh blkio 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_1_200_none cgroup_fj_stress.sh blkio 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_one.sh index 5d00709a0..bc365d069 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_1_200_one cgroup_fj_stress.sh blkio 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_1_200_one cgroup_fj_stress.sh blkio 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_each.sh index 9eccb10b2..43798b516 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_200_1_each cgroup_fj_stress.sh blkio 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_200_1_each cgroup_fj_stress.sh blkio 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_none.sh index 0ff9f80ce..1621093c4 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_200_1_none cgroup_fj_stress.sh blkio 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_200_1_none cgroup_fj_stress.sh blkio 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_one.sh index cec7d489e..295670a9c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_200_1_one cgroup_fj_stress.sh blkio 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_200_1_one cgroup_fj_stress.sh blkio 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_each.sh index 16df732a1..78bf203a8 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_2_2_each cgroup_fj_stress.sh blkio 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_2_2_each cgroup_fj_stress.sh blkio 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_none.sh index e046fc028..cb4ea5888 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_2_2_none cgroup_fj_stress.sh blkio 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_2_2_none cgroup_fj_stress.sh blkio 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_one.sh index b2f712cdb..fbba07d76 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_2_2_one cgroup_fj_stress.sh blkio 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_2_2_one cgroup_fj_stress.sh blkio 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_each.sh index a262d9d6b..c57efa560 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_2_9_each cgroup_fj_stress.sh blkio 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_2_9_each cgroup_fj_stress.sh blkio 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_none.sh index 7a5a1dabc..2e54ccffc 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_2_9_none cgroup_fj_stress.sh blkio 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_2_9_none cgroup_fj_stress.sh blkio 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_one.sh index 88ac72d1d..14fb52088 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_2_9_one cgroup_fj_stress.sh blkio 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_2_9_one cgroup_fj_stress.sh blkio 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_each.sh index bebce163b..4e5b6679f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_3_3_each cgroup_fj_stress.sh blkio 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_3_3_each cgroup_fj_stress.sh blkio 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_none.sh index dda9319a1..170f19891 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_3_3_none cgroup_fj_stress.sh blkio 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_3_3_none cgroup_fj_stress.sh blkio 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_one.sh index c37e05c24..ec21c8164 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_3_3_one cgroup_fj_stress.sh blkio 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_3_3_one cgroup_fj_stress.sh blkio 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_each.sh index 110b0d18b..b64d1113b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_4_4_each cgroup_fj_stress.sh blkio 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_4_4_each cgroup_fj_stress.sh blkio 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_none.sh index 05f5c14d4..531103612 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_4_4_none cgroup_fj_stress.sh blkio 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_4_4_none cgroup_fj_stress.sh blkio 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_one.sh index d5f3fba87..cf08cfc49 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_blkio_4_4_one cgroup_fj_stress.sh blkio 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_blkio_4_4_one cgroup_fj_stress.sh blkio 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_each.sh index 2fcbb1808..94e25b1a7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_10_3_each cgroup_fj_stress.sh cpu 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_10_3_each cgroup_fj_stress.sh cpu 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_none.sh index 08dc7558b..263978fc8 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_10_3_none cgroup_fj_stress.sh cpu 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_10_3_none cgroup_fj_stress.sh cpu 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_one.sh index a6930accf..25b122a01 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_10_3_one cgroup_fj_stress.sh cpu 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_10_3_one cgroup_fj_stress.sh cpu 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_each.sh index dc72b8fb0..748bc5b25 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_1_200_each cgroup_fj_stress.sh cpu 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_1_200_each cgroup_fj_stress.sh cpu 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_none.sh index b5eed7899..996ef9197 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_1_200_none cgroup_fj_stress.sh cpu 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_1_200_none cgroup_fj_stress.sh cpu 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_one.sh index 393cf4115..4746d603c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_1_200_one cgroup_fj_stress.sh cpu 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_1_200_one cgroup_fj_stress.sh cpu 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_each.sh index 423941a31..40090ac51 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_200_1_each cgroup_fj_stress.sh cpu 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_200_1_each cgroup_fj_stress.sh cpu 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_none.sh index 68fef1e30..2a4095b31 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_200_1_none cgroup_fj_stress.sh cpu 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_200_1_none cgroup_fj_stress.sh cpu 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_one.sh index e4e0dbfe4..274d669e2 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_200_1_one cgroup_fj_stress.sh cpu 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_200_1_one cgroup_fj_stress.sh cpu 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_each.sh index 4c35ee775..1ec4d7721 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_2_2_each cgroup_fj_stress.sh cpu 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_2_2_each cgroup_fj_stress.sh cpu 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_none.sh index 5a0aff4f6..42654e130 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_2_2_none cgroup_fj_stress.sh cpu 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_2_2_none cgroup_fj_stress.sh cpu 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_one.sh index cb756ec77..b810782d3 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_2_2_one cgroup_fj_stress.sh cpu 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_2_2_one cgroup_fj_stress.sh cpu 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_each.sh index 857be5362..0d21e049d 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_2_9_each cgroup_fj_stress.sh cpu 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_2_9_each cgroup_fj_stress.sh cpu 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_none.sh index f0bbe2356..06e68f5a7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_2_9_none cgroup_fj_stress.sh cpu 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_2_9_none cgroup_fj_stress.sh cpu 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_one.sh index a1a98b993..ddcb7ed45 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_2_9_one cgroup_fj_stress.sh cpu 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_2_9_one cgroup_fj_stress.sh cpu 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_each.sh index ddd699434..63cfd0fe8 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_3_3_each cgroup_fj_stress.sh cpu 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_3_3_each cgroup_fj_stress.sh cpu 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_none.sh index 4e241e6f6..ca76af071 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_3_3_none cgroup_fj_stress.sh cpu 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_3_3_none cgroup_fj_stress.sh cpu 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_one.sh index 51d7390a1..b400cae89 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_3_3_one cgroup_fj_stress.sh cpu 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_3_3_one cgroup_fj_stress.sh cpu 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_each.sh index c4db36fc2..d3567b527 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_4_4_each cgroup_fj_stress.sh cpu 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_4_4_each cgroup_fj_stress.sh cpu 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_none.sh index e8c063b01..ef48b7016 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_4_4_none cgroup_fj_stress.sh cpu 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_4_4_none cgroup_fj_stress.sh cpu 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_one.sh index cdc5b3ed5..e9aeb4c08 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpu_4_4_one cgroup_fj_stress.sh cpu 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpu_4_4_one cgroup_fj_stress.sh cpu 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_each.sh index 72297dca3..6aec38ac5 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_10_3_each cgroup_fj_stress.sh cpuacct 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_10_3_each cgroup_fj_stress.sh cpuacct 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_none.sh index cb3375c4c..d69127b0e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_10_3_none cgroup_fj_stress.sh cpuacct 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_10_3_none cgroup_fj_stress.sh cpuacct 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_one.sh index dfc8e9ac1..1ccd7d030 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_10_3_one cgroup_fj_stress.sh cpuacct 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_10_3_one cgroup_fj_stress.sh cpuacct 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_each.sh index ed60c6c53..51a719404 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_1_200_each cgroup_fj_stress.sh cpuacct 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_1_200_each cgroup_fj_stress.sh cpuacct 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_none.sh index a158ed3e2..4b7bf23ab 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_1_200_none cgroup_fj_stress.sh cpuacct 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_1_200_none cgroup_fj_stress.sh cpuacct 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_one.sh index f3fe1f857..120954bd7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_1_200_one cgroup_fj_stress.sh cpuacct 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_1_200_one cgroup_fj_stress.sh cpuacct 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_each.sh index b0f8be1a3..ea9732db2 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_200_1_each cgroup_fj_stress.sh cpuacct 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_200_1_each cgroup_fj_stress.sh cpuacct 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_none.sh index 6eba64976..afefe7bcd 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_200_1_none cgroup_fj_stress.sh cpuacct 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_200_1_none cgroup_fj_stress.sh cpuacct 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_one.sh index 0f3dba79d..cbb47e9b1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_200_1_one cgroup_fj_stress.sh cpuacct 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_200_1_one cgroup_fj_stress.sh cpuacct 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_each.sh index 9d10f8a61..5428b9533 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_2_2_each cgroup_fj_stress.sh cpuacct 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_2_2_each cgroup_fj_stress.sh cpuacct 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_none.sh index dc9de8c06..5fc02f906 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_2_2_none cgroup_fj_stress.sh cpuacct 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_2_2_none cgroup_fj_stress.sh cpuacct 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_one.sh index 8208eb9b4..3f63961bb 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_2_2_one cgroup_fj_stress.sh cpuacct 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_2_2_one cgroup_fj_stress.sh cpuacct 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_each.sh index d9f109f43..d4fc62c19 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_2_9_each cgroup_fj_stress.sh cpuacct 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_2_9_each cgroup_fj_stress.sh cpuacct 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_none.sh index 824d1cb49..7782feed8 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_2_9_none cgroup_fj_stress.sh cpuacct 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_2_9_none cgroup_fj_stress.sh cpuacct 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_one.sh index 067629038..08c372cb1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_2_9_one cgroup_fj_stress.sh cpuacct 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_2_9_one cgroup_fj_stress.sh cpuacct 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_each.sh index bc015db79..da780fe08 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_3_3_each cgroup_fj_stress.sh cpuacct 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_3_3_each cgroup_fj_stress.sh cpuacct 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_none.sh index 9dafca62b..ee520e81a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_3_3_none cgroup_fj_stress.sh cpuacct 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_3_3_none cgroup_fj_stress.sh cpuacct 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_one.sh index 2a364ef23..f7a08bb45 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_3_3_one cgroup_fj_stress.sh cpuacct 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_3_3_one cgroup_fj_stress.sh cpuacct 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_each.sh index b62ee1343..fe5cd33fd 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_4_4_each cgroup_fj_stress.sh cpuacct 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_4_4_each cgroup_fj_stress.sh cpuacct 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_none.sh index fe9266f48..b775d52c2 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_4_4_none cgroup_fj_stress.sh cpuacct 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_4_4_none cgroup_fj_stress.sh cpuacct 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_one.sh index cce1dafb8..539f14677 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuacct_4_4_one cgroup_fj_stress.sh cpuacct 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuacct_4_4_one cgroup_fj_stress.sh cpuacct 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_each.sh index c1f948b79..25c4b017c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_10_3_each cgroup_fj_stress.sh cpuset 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_10_3_each cgroup_fj_stress.sh cpuset 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_none.sh index c8b04fffa..3c3830627 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_10_3_none cgroup_fj_stress.sh cpuset 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_10_3_none cgroup_fj_stress.sh cpuset 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_one.sh index cd2487e7d..75f9aa724 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_10_3_one cgroup_fj_stress.sh cpuset 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_10_3_one cgroup_fj_stress.sh cpuset 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_each.sh index d7f59a4a1..5dc24152e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_1_200_each cgroup_fj_stress.sh cpuset 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_1_200_each cgroup_fj_stress.sh cpuset 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_none.sh index 65e01262e..1cc102b2e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_1_200_none cgroup_fj_stress.sh cpuset 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_1_200_none cgroup_fj_stress.sh cpuset 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_one.sh index 948eeb2ff..1d05a6ea1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_1_200_one cgroup_fj_stress.sh cpuset 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_1_200_one cgroup_fj_stress.sh cpuset 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_each.sh index b5e477cd6..d476bd33e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_200_1_each cgroup_fj_stress.sh cpuset 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_200_1_each cgroup_fj_stress.sh cpuset 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_none.sh index 2515fd661..50589181c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_200_1_none cgroup_fj_stress.sh cpuset 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_200_1_none cgroup_fj_stress.sh cpuset 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_one.sh index 88532946c..1b20bcedc 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_200_1_one cgroup_fj_stress.sh cpuset 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_200_1_one cgroup_fj_stress.sh cpuset 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_each.sh index c837aadff..10a41f81e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_2_2_each cgroup_fj_stress.sh cpuset 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_2_2_each cgroup_fj_stress.sh cpuset 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_none.sh index 1c6866e64..28890687d 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_2_2_none cgroup_fj_stress.sh cpuset 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_2_2_none cgroup_fj_stress.sh cpuset 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_one.sh index 69df212be..0a5b8ce61 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_2_2_one cgroup_fj_stress.sh cpuset 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_2_2_one cgroup_fj_stress.sh cpuset 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_each.sh index a9f2b1cbb..c8311576c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_2_9_each cgroup_fj_stress.sh cpuset 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_2_9_each cgroup_fj_stress.sh cpuset 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_none.sh index 6689f38b1..ebd099d36 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_2_9_none cgroup_fj_stress.sh cpuset 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_2_9_none cgroup_fj_stress.sh cpuset 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_one.sh index 3353594a0..a7fb32355 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_2_9_one cgroup_fj_stress.sh cpuset 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_2_9_one cgroup_fj_stress.sh cpuset 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_each.sh index ad1bf7bb1..7c4635c04 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_3_3_each cgroup_fj_stress.sh cpuset 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_3_3_each cgroup_fj_stress.sh cpuset 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_none.sh index a0f1f2b94..cf6c28554 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_3_3_none cgroup_fj_stress.sh cpuset 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_3_3_none cgroup_fj_stress.sh cpuset 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_one.sh index d32cf4a4f..16a718db2 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_3_3_one cgroup_fj_stress.sh cpuset 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_3_3_one cgroup_fj_stress.sh cpuset 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_each.sh index e7dcb7486..379f64b77 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_4_4_each cgroup_fj_stress.sh cpuset 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_4_4_each cgroup_fj_stress.sh cpuset 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_none.sh index 1f70d2e95..38740aa3d 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_4_4_none cgroup_fj_stress.sh cpuset 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_4_4_none cgroup_fj_stress.sh cpuset 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_one.sh index 2eea68867..ba6ec61fe 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_cpuset_4_4_one cgroup_fj_stress.sh cpuset 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_cpuset_4_4_one cgroup_fj_stress.sh cpuset 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_each.sh index 168d0c1c9..7cbbbb133 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_10_3_each cgroup_fj_stress.sh debug 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_10_3_each cgroup_fj_stress.sh debug 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_none.sh index 0aca1754b..d89413cce 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_10_3_none cgroup_fj_stress.sh debug 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_10_3_none cgroup_fj_stress.sh debug 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_one.sh index 5bf9025c5..93e15a5e4 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_10_3_one cgroup_fj_stress.sh debug 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_10_3_one cgroup_fj_stress.sh debug 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_each.sh index d00689b1d..736bd2395 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_1_200_each cgroup_fj_stress.sh debug 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_1_200_each cgroup_fj_stress.sh debug 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_none.sh index 116c65fcc..e737f4884 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_1_200_none cgroup_fj_stress.sh debug 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_1_200_none cgroup_fj_stress.sh debug 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_one.sh index e70f4d419..cea4a88e1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_1_200_one cgroup_fj_stress.sh debug 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_1_200_one cgroup_fj_stress.sh debug 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_each.sh index 721dc21f5..d43d548e1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_200_1_each cgroup_fj_stress.sh debug 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_200_1_each cgroup_fj_stress.sh debug 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_none.sh index 8b8ad7c38..8826d50fc 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_200_1_none cgroup_fj_stress.sh debug 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_200_1_none cgroup_fj_stress.sh debug 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_one.sh index 9c66f68f7..4464ab02a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_200_1_one cgroup_fj_stress.sh debug 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_200_1_one cgroup_fj_stress.sh debug 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_each.sh index fbde18f02..b02a59223 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_2_2_each cgroup_fj_stress.sh debug 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_2_2_each cgroup_fj_stress.sh debug 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_none.sh index bfb9ef726..76872949a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_2_2_none cgroup_fj_stress.sh debug 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_2_2_none cgroup_fj_stress.sh debug 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_one.sh index 6aa741b60..8c8b0fd56 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_2_2_one cgroup_fj_stress.sh debug 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_2_2_one cgroup_fj_stress.sh debug 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_each.sh index 8a8a7be5b..5543cf777 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_2_9_each cgroup_fj_stress.sh debug 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_2_9_each cgroup_fj_stress.sh debug 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_none.sh index 68d48b5e0..73d7c2fd6 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_2_9_none cgroup_fj_stress.sh debug 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_2_9_none cgroup_fj_stress.sh debug 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_one.sh index ba7925e52..b77c87c63 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_2_9_one cgroup_fj_stress.sh debug 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_2_9_one cgroup_fj_stress.sh debug 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_each.sh index 08a01ccc8..d40567a2a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_3_3_each cgroup_fj_stress.sh debug 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_3_3_each cgroup_fj_stress.sh debug 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_none.sh index 7db1c4541..a416d0518 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_3_3_none cgroup_fj_stress.sh debug 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_3_3_none cgroup_fj_stress.sh debug 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_one.sh index c27122539..a1583dbb8 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_3_3_one cgroup_fj_stress.sh debug 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_3_3_one cgroup_fj_stress.sh debug 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_each.sh index 1a2c73ee3..c8bede7a6 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_4_4_each cgroup_fj_stress.sh debug 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_4_4_each cgroup_fj_stress.sh debug 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_none.sh index 96ce63d71..37d14e2ff 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_4_4_none cgroup_fj_stress.sh debug 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_4_4_none cgroup_fj_stress.sh debug 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_one.sh index 353015ba5..85461a05c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_debug_4_4_one cgroup_fj_stress.sh debug 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_debug_4_4_one cgroup_fj_stress.sh debug 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_each.sh index 3a49c70e7..aa8355b26 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_10_3_each cgroup_fj_stress.sh devices 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_10_3_each cgroup_fj_stress.sh devices 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_none.sh index d6a33d7e6..e5c6cadd3 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_10_3_none cgroup_fj_stress.sh devices 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_10_3_none cgroup_fj_stress.sh devices 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_one.sh index d89c9821f..1ecac9af3 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_10_3_one cgroup_fj_stress.sh devices 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_10_3_one cgroup_fj_stress.sh devices 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_each.sh index f3e9bb8a6..de1a6316b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_1_200_each cgroup_fj_stress.sh devices 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_1_200_each cgroup_fj_stress.sh devices 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_none.sh index 86216c3b5..dd743fa7e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_1_200_none cgroup_fj_stress.sh devices 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_1_200_none cgroup_fj_stress.sh devices 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_one.sh index 5614ba65d..c5ccf2083 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_1_200_one cgroup_fj_stress.sh devices 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_1_200_one cgroup_fj_stress.sh devices 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_each.sh index d69834a64..fb6656e0c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_200_1_each cgroup_fj_stress.sh devices 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_200_1_each cgroup_fj_stress.sh devices 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_none.sh index 85009da10..bbf51f94e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_200_1_none cgroup_fj_stress.sh devices 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_200_1_none cgroup_fj_stress.sh devices 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_one.sh index 0dd42680c..3e61d01e0 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_200_1_one cgroup_fj_stress.sh devices 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_200_1_one cgroup_fj_stress.sh devices 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_each.sh index 7e4eca625..775b4e811 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_2_2_each cgroup_fj_stress.sh devices 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_2_2_each cgroup_fj_stress.sh devices 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_none.sh index f17f7bab7..d5666e7c5 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_2_2_none cgroup_fj_stress.sh devices 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_2_2_none cgroup_fj_stress.sh devices 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_one.sh index edbde8d7f..f567afabf 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_2_2_one cgroup_fj_stress.sh devices 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_2_2_one cgroup_fj_stress.sh devices 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_each.sh index 4b40e9f7f..c350244e2 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_2_9_each cgroup_fj_stress.sh devices 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_2_9_each cgroup_fj_stress.sh devices 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_none.sh index f5a475e02..6b208d0cd 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_2_9_none cgroup_fj_stress.sh devices 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_2_9_none cgroup_fj_stress.sh devices 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_one.sh index 880af6e82..c12a89b0a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_2_9_one cgroup_fj_stress.sh devices 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_2_9_one cgroup_fj_stress.sh devices 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_each.sh index eefad6cfa..e7ef812f4 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_3_3_each cgroup_fj_stress.sh devices 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_3_3_each cgroup_fj_stress.sh devices 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_none.sh index 29c872a9f..51965e585 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_3_3_none cgroup_fj_stress.sh devices 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_3_3_none cgroup_fj_stress.sh devices 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_one.sh index 4816325ca..ff81ef7a0 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_3_3_one cgroup_fj_stress.sh devices 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_3_3_one cgroup_fj_stress.sh devices 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_each.sh index 7a04fdf5c..87bc43e79 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_4_4_each cgroup_fj_stress.sh devices 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_4_4_each cgroup_fj_stress.sh devices 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_none.sh index 9da44ed79..d5a7eeff7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_4_4_none cgroup_fj_stress.sh devices 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_4_4_none cgroup_fj_stress.sh devices 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_one.sh index c78f54a57..11610a341 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_devices_4_4_one cgroup_fj_stress.sh devices 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_devices_4_4_one cgroup_fj_stress.sh devices 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_each.sh index 70b841ed6..36a4f8720 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_10_3_each cgroup_fj_stress.sh freezer 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_10_3_each cgroup_fj_stress.sh freezer 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_none.sh index 87292a527..f01f42ff7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_10_3_none cgroup_fj_stress.sh freezer 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_10_3_none cgroup_fj_stress.sh freezer 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_one.sh index f7e39bc55..d312859b0 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_10_3_one cgroup_fj_stress.sh freezer 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_10_3_one cgroup_fj_stress.sh freezer 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_each.sh index 460726469..75e757303 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_1_200_each cgroup_fj_stress.sh freezer 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_1_200_each cgroup_fj_stress.sh freezer 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_none.sh index c40f3d795..210abc649 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_1_200_none cgroup_fj_stress.sh freezer 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_1_200_none cgroup_fj_stress.sh freezer 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_one.sh index c39870259..cbbb99cae 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_1_200_one cgroup_fj_stress.sh freezer 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_1_200_one cgroup_fj_stress.sh freezer 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_each.sh index 909ed1394..4b8eb21a0 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_200_1_each cgroup_fj_stress.sh freezer 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_200_1_each cgroup_fj_stress.sh freezer 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_none.sh index c167ea128..c585f614d 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_200_1_none cgroup_fj_stress.sh freezer 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_200_1_none cgroup_fj_stress.sh freezer 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_one.sh index a4de8570a..5a90ffe06 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_200_1_one cgroup_fj_stress.sh freezer 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_200_1_one cgroup_fj_stress.sh freezer 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_each.sh index dd7d6c8c6..1481f8762 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_2_2_each cgroup_fj_stress.sh freezer 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_2_2_each cgroup_fj_stress.sh freezer 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_none.sh index f64615cf2..4d26c7c00 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_2_2_none cgroup_fj_stress.sh freezer 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_2_2_none cgroup_fj_stress.sh freezer 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_one.sh index bfaf60ff2..fcdb8064b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_2_2_one cgroup_fj_stress.sh freezer 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_2_2_one cgroup_fj_stress.sh freezer 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_each.sh index 75d1bc3e4..4d4c4364a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_2_9_each cgroup_fj_stress.sh freezer 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_2_9_each cgroup_fj_stress.sh freezer 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_none.sh index b9f856eea..52483f8dc 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_2_9_none cgroup_fj_stress.sh freezer 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_2_9_none cgroup_fj_stress.sh freezer 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_one.sh index 7fefd59a2..2842fe612 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_2_9_one cgroup_fj_stress.sh freezer 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_2_9_one cgroup_fj_stress.sh freezer 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_each.sh index f87644263..efdcc9700 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_3_3_each cgroup_fj_stress.sh freezer 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_3_3_each cgroup_fj_stress.sh freezer 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_none.sh index 53f0d647c..3c62e1a2a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_3_3_none cgroup_fj_stress.sh freezer 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_3_3_none cgroup_fj_stress.sh freezer 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_one.sh index 4e3a34581..c82f89f58 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_3_3_one cgroup_fj_stress.sh freezer 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_3_3_one cgroup_fj_stress.sh freezer 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_each.sh index 5b1d211e9..2c838838a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_4_4_each cgroup_fj_stress.sh freezer 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_4_4_each cgroup_fj_stress.sh freezer 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_none.sh index 45405fa26..21a8b57f1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_4_4_none cgroup_fj_stress.sh freezer 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_4_4_none cgroup_fj_stress.sh freezer 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_one.sh index 496d119fc..80a7730a3 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_freezer_4_4_one cgroup_fj_stress.sh freezer 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_freezer_4_4_one cgroup_fj_stress.sh freezer 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_each.sh index 5ad30a928..19ee46249 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_10_3_each cgroup_fj_stress.sh hugetlb 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_10_3_each cgroup_fj_stress.sh hugetlb 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_none.sh index 135754d49..0668005bc 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_10_3_none cgroup_fj_stress.sh hugetlb 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_10_3_none cgroup_fj_stress.sh hugetlb 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_one.sh index 0c6f23d2f..cb1fdead2 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_10_3_one cgroup_fj_stress.sh hugetlb 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_10_3_one cgroup_fj_stress.sh hugetlb 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_each.sh index 4c88c5c91..0002b9f25 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_1_200_each cgroup_fj_stress.sh hugetlb 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_1_200_each cgroup_fj_stress.sh hugetlb 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_none.sh index cebdd5e19..99656c497 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_1_200_none cgroup_fj_stress.sh hugetlb 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_1_200_none cgroup_fj_stress.sh hugetlb 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_one.sh index 851d3221f..9b054d507 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_1_200_one cgroup_fj_stress.sh hugetlb 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_1_200_one cgroup_fj_stress.sh hugetlb 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_each.sh index 6b8b20471..c3776c9b9 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_200_1_each cgroup_fj_stress.sh hugetlb 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_200_1_each cgroup_fj_stress.sh hugetlb 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_none.sh index 2f090b091..a65e5f4dd 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_200_1_none cgroup_fj_stress.sh hugetlb 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_200_1_none cgroup_fj_stress.sh hugetlb 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_one.sh index eb34b73b6..6b0b2e141 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_200_1_one cgroup_fj_stress.sh hugetlb 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_200_1_one cgroup_fj_stress.sh hugetlb 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_each.sh index 78c7b15ca..247a72eaf 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_2_2_each cgroup_fj_stress.sh hugetlb 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_2_2_each cgroup_fj_stress.sh hugetlb 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_none.sh index f6a530cbc..707a17846 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_2_2_none cgroup_fj_stress.sh hugetlb 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_2_2_none cgroup_fj_stress.sh hugetlb 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_one.sh index bc6096aa2..f727f26f6 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_2_2_one cgroup_fj_stress.sh hugetlb 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_2_2_one cgroup_fj_stress.sh hugetlb 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_each.sh index ca3abd699..e6ca38115 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_2_9_each cgroup_fj_stress.sh hugetlb 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_2_9_each cgroup_fj_stress.sh hugetlb 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_none.sh index 01922ad93..650504021 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_2_9_none cgroup_fj_stress.sh hugetlb 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_2_9_none cgroup_fj_stress.sh hugetlb 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_one.sh index 1475ade41..dc227f2f1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_2_9_one cgroup_fj_stress.sh hugetlb 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_2_9_one cgroup_fj_stress.sh hugetlb 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_each.sh index 53fb17291..e95fbf469 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_3_3_each cgroup_fj_stress.sh hugetlb 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_3_3_each cgroup_fj_stress.sh hugetlb 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_none.sh index 6044b353a..998d9e702 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_3_3_none cgroup_fj_stress.sh hugetlb 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_3_3_none cgroup_fj_stress.sh hugetlb 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_one.sh index 6e4f2a4e9..50dd956f4 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_3_3_one cgroup_fj_stress.sh hugetlb 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_3_3_one cgroup_fj_stress.sh hugetlb 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_each.sh index 1062fd515..449442482 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_4_4_each cgroup_fj_stress.sh hugetlb 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_4_4_each cgroup_fj_stress.sh hugetlb 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_none.sh index 5e556af3e..775fe47f6 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_4_4_none cgroup_fj_stress.sh hugetlb 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_4_4_none cgroup_fj_stress.sh hugetlb 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_one.sh index 1f01a774e..0b63239a4 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_hugetlb_4_4_one cgroup_fj_stress.sh hugetlb 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_hugetlb_4_4_one cgroup_fj_stress.sh hugetlb 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_each.sh index 40808f3c6..6b37e6b63 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_10_3_each cgroup_fj_stress.sh memory 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_10_3_each cgroup_fj_stress.sh memory 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_none.sh index d5338cbcf..9eb097cc2 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_10_3_none cgroup_fj_stress.sh memory 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_10_3_none cgroup_fj_stress.sh memory 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_one.sh index 5600f5b51..a306cbfa5 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_10_3_one cgroup_fj_stress.sh memory 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_10_3_one cgroup_fj_stress.sh memory 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_each.sh index a03ae2eeb..523608650 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_1_200_each cgroup_fj_stress.sh memory 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_1_200_each cgroup_fj_stress.sh memory 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_none.sh index 8909a97d7..4a532895e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_1_200_none cgroup_fj_stress.sh memory 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_1_200_none cgroup_fj_stress.sh memory 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_one.sh index 26c3532e8..3aa5dcef8 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_1_200_one cgroup_fj_stress.sh memory 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_1_200_one cgroup_fj_stress.sh memory 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_each.sh index 4bf8349bf..911063dee 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_200_1_each cgroup_fj_stress.sh memory 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_200_1_each cgroup_fj_stress.sh memory 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_none.sh index 9028d6f51..9e17314d8 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_200_1_none cgroup_fj_stress.sh memory 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_200_1_none cgroup_fj_stress.sh memory 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_one.sh index de009e88d..5ef3bc0d7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_200_1_one cgroup_fj_stress.sh memory 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_200_1_one cgroup_fj_stress.sh memory 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_each.sh index 5d83450ec..bbe170f8f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_2_2_each cgroup_fj_stress.sh memory 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_2_2_each cgroup_fj_stress.sh memory 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_none.sh index 286bc0b92..4a8b2bbd7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_2_2_none cgroup_fj_stress.sh memory 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_2_2_none cgroup_fj_stress.sh memory 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_one.sh index c4257cc1d..48d174035 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_2_2_one cgroup_fj_stress.sh memory 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_2_2_one cgroup_fj_stress.sh memory 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_each.sh index 0b81e0877..e193d47c7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_2_9_each cgroup_fj_stress.sh memory 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_2_9_each cgroup_fj_stress.sh memory 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_none.sh index e95f20e51..0dbac5ce5 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_2_9_none cgroup_fj_stress.sh memory 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_2_9_none cgroup_fj_stress.sh memory 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_one.sh index bf5497636..f2a2ca042 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_2_9_one cgroup_fj_stress.sh memory 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_2_9_one cgroup_fj_stress.sh memory 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_each.sh index 491903ff1..e10284637 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_3_3_each cgroup_fj_stress.sh memory 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_3_3_each cgroup_fj_stress.sh memory 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_none.sh index cce40e0dc..428b9f678 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_3_3_none cgroup_fj_stress.sh memory 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_3_3_none cgroup_fj_stress.sh memory 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_one.sh index a3861761e..1eb706772 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_3_3_one cgroup_fj_stress.sh memory 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_3_3_one cgroup_fj_stress.sh memory 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_each.sh index 2723b8d30..e3b9bd406 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_4_4_each cgroup_fj_stress.sh memory 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_4_4_each cgroup_fj_stress.sh memory 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_none.sh index 186392665..9280a0b19 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_4_4_none cgroup_fj_stress.sh memory 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_4_4_none cgroup_fj_stress.sh memory 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_one.sh index b3b2b8a73..672318fda 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_memory_4_4_one cgroup_fj_stress.sh memory 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_memory_4_4_one cgroup_fj_stress.sh memory 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_each.sh index aecef7a77..60a23a9fa 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_10_3_each cgroup_fj_stress.sh net_cls 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_10_3_each cgroup_fj_stress.sh net_cls 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_none.sh index 9476d1180..9e2121d3f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_10_3_none cgroup_fj_stress.sh net_cls 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_10_3_none cgroup_fj_stress.sh net_cls 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_one.sh index 1402302c9..3bc24da00 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_10_3_one cgroup_fj_stress.sh net_cls 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_10_3_one cgroup_fj_stress.sh net_cls 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_each.sh index 84cdda7a6..3ba38d70f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_1_200_each cgroup_fj_stress.sh net_cls 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_1_200_each cgroup_fj_stress.sh net_cls 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_none.sh index ae966923b..1090a3087 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_1_200_none cgroup_fj_stress.sh net_cls 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_1_200_none cgroup_fj_stress.sh net_cls 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_one.sh index 07e09067f..7f2704cb3 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_1_200_one cgroup_fj_stress.sh net_cls 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_1_200_one cgroup_fj_stress.sh net_cls 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_each.sh index a68a4db18..1b8039f9d 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_200_1_each cgroup_fj_stress.sh net_cls 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_200_1_each cgroup_fj_stress.sh net_cls 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_none.sh index 7079841f8..4061b652e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_200_1_none cgroup_fj_stress.sh net_cls 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_200_1_none cgroup_fj_stress.sh net_cls 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_one.sh index b15e37d82..e0cad15cc 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_200_1_one cgroup_fj_stress.sh net_cls 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_200_1_one cgroup_fj_stress.sh net_cls 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_each.sh index 969a0ca8a..ac2d89579 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_2_2_each cgroup_fj_stress.sh net_cls 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_2_2_each cgroup_fj_stress.sh net_cls 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_none.sh index 40366b268..334922382 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_2_2_none cgroup_fj_stress.sh net_cls 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_2_2_none cgroup_fj_stress.sh net_cls 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_one.sh index 733379be8..1c7063f48 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_2_2_one cgroup_fj_stress.sh net_cls 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_2_2_one cgroup_fj_stress.sh net_cls 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_each.sh index 6dec4dd6d..0cbd245cd 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_2_9_each cgroup_fj_stress.sh net_cls 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_2_9_each cgroup_fj_stress.sh net_cls 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_none.sh index f3a47fcb1..6c5ce6df1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_2_9_none cgroup_fj_stress.sh net_cls 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_2_9_none cgroup_fj_stress.sh net_cls 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_one.sh index 6da7b6b1b..cb4e08480 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_2_9_one cgroup_fj_stress.sh net_cls 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_2_9_one cgroup_fj_stress.sh net_cls 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_each.sh index c6a7c72b5..b7a4d301e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_3_3_each cgroup_fj_stress.sh net_cls 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_3_3_each cgroup_fj_stress.sh net_cls 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_none.sh index 80ca0967d..e099af7de 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_3_3_none cgroup_fj_stress.sh net_cls 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_3_3_none cgroup_fj_stress.sh net_cls 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_one.sh index 66539d7e8..ce4bf9079 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_3_3_one cgroup_fj_stress.sh net_cls 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_3_3_one cgroup_fj_stress.sh net_cls 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_each.sh index 63d4bcb32..b2efa7b6b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_4_4_each cgroup_fj_stress.sh net_cls 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_4_4_each cgroup_fj_stress.sh net_cls 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_none.sh index 94b8d7095..bc0989739 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_4_4_none cgroup_fj_stress.sh net_cls 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_4_4_none cgroup_fj_stress.sh net_cls 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_one.sh index 5ec162bf9..57335479e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_cls_4_4_one cgroup_fj_stress.sh net_cls 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_cls_4_4_one cgroup_fj_stress.sh net_cls 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_each.sh index c1900179d..2deb02e09 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_10_3_each cgroup_fj_stress.sh net_prio 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_10_3_each cgroup_fj_stress.sh net_prio 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_none.sh index 902e43133..028e713fe 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_10_3_none cgroup_fj_stress.sh net_prio 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_10_3_none cgroup_fj_stress.sh net_prio 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_one.sh index cdc3c884c..eeceb34bc 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_10_3_one cgroup_fj_stress.sh net_prio 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_10_3_one cgroup_fj_stress.sh net_prio 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_each.sh index 9282c62d4..27964130b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_1_200_each cgroup_fj_stress.sh net_prio 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_1_200_each cgroup_fj_stress.sh net_prio 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_none.sh index ebf5930de..38c9c9e3f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_1_200_none cgroup_fj_stress.sh net_prio 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_1_200_none cgroup_fj_stress.sh net_prio 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_one.sh index 84db6fb02..67bdcee38 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_1_200_one cgroup_fj_stress.sh net_prio 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_1_200_one cgroup_fj_stress.sh net_prio 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_each.sh index d1996e3a6..270d234cf 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_200_1_each cgroup_fj_stress.sh net_prio 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_200_1_each cgroup_fj_stress.sh net_prio 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_none.sh index 122e59aa6..86ba17110 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_200_1_none cgroup_fj_stress.sh net_prio 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_200_1_none cgroup_fj_stress.sh net_prio 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_one.sh index b5e415560..8c396151f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_200_1_one cgroup_fj_stress.sh net_prio 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_200_1_one cgroup_fj_stress.sh net_prio 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_each.sh index bf1efb463..c67d76565 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_2_2_each cgroup_fj_stress.sh net_prio 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_2_2_each cgroup_fj_stress.sh net_prio 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_none.sh index 621c16baa..618495926 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_2_2_none cgroup_fj_stress.sh net_prio 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_2_2_none cgroup_fj_stress.sh net_prio 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_one.sh index cf5e400c1..f6d17f3d2 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_2_2_one cgroup_fj_stress.sh net_prio 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_2_2_one cgroup_fj_stress.sh net_prio 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_each.sh index e94465532..d6ff0ae1c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_2_9_each cgroup_fj_stress.sh net_prio 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_2_9_each cgroup_fj_stress.sh net_prio 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_none.sh index 1ecf6ddb1..f22a873e1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_2_9_none cgroup_fj_stress.sh net_prio 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_2_9_none cgroup_fj_stress.sh net_prio 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_one.sh index ca8afe58b..51a367ebf 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_2_9_one cgroup_fj_stress.sh net_prio 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_2_9_one cgroup_fj_stress.sh net_prio 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_each.sh index a037d2574..ab9e7aca3 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_3_3_each cgroup_fj_stress.sh net_prio 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_3_3_each cgroup_fj_stress.sh net_prio 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_none.sh index 4efbcf13b..7a92e4486 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_3_3_none cgroup_fj_stress.sh net_prio 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_3_3_none cgroup_fj_stress.sh net_prio 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_one.sh index 1611bb733..8371f93af 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_3_3_one cgroup_fj_stress.sh net_prio 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_3_3_one cgroup_fj_stress.sh net_prio 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_each.sh index 4dfd386c4..fae6b6c00 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_4_4_each cgroup_fj_stress.sh net_prio 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_4_4_each cgroup_fj_stress.sh net_prio 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_none.sh index 43f58152d..3bbaa6583 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_4_4_none cgroup_fj_stress.sh net_prio 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_4_4_none cgroup_fj_stress.sh net_prio 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_one.sh index 593bf7360..255cad3bb 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_net_prio_4_4_one cgroup_fj_stress.sh net_prio 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_net_prio_4_4_one cgroup_fj_stress.sh net_prio 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_each.sh index bdc04bd18..413dd5642 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_10_3_each cgroup_fj_stress.sh perf_event 10 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_10_3_each cgroup_fj_stress.sh perf_event 10 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_none.sh index cf7f59bb9..73a344369 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_10_3_none cgroup_fj_stress.sh perf_event 10 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_10_3_none cgroup_fj_stress.sh perf_event 10 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_one.sh index 8f5e9f918..f2284037f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_10_3_one cgroup_fj_stress.sh perf_event 10 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_10_3_one cgroup_fj_stress.sh perf_event 10 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_each.sh index e0ba2f4c1..d3c1dc268 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_1_200_each cgroup_fj_stress.sh perf_event 1 200 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_1_200_each cgroup_fj_stress.sh perf_event 1 200 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_none.sh index 62d51836e..b98529a19 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_1_200_none cgroup_fj_stress.sh perf_event 1 200 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_1_200_none cgroup_fj_stress.sh perf_event 1 200 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_one.sh index 287696939..29cb40ce4 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_1_200_one cgroup_fj_stress.sh perf_event 1 200 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_1_200_one cgroup_fj_stress.sh perf_event 1 200 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_each.sh index bd4ede028..b9edc97e9 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_200_1_each cgroup_fj_stress.sh perf_event 200 1 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_200_1_each cgroup_fj_stress.sh perf_event 200 1 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_none.sh index 8d900a0ac..d81bfee88 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_200_1_none cgroup_fj_stress.sh perf_event 200 1 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_200_1_none cgroup_fj_stress.sh perf_event 200 1 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_one.sh index ac5bc110c..acb714706 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_200_1_one cgroup_fj_stress.sh perf_event 200 1 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_200_1_one cgroup_fj_stress.sh perf_event 200 1 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_each.sh index a6eac9866..535e5e3d1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_2_2_each cgroup_fj_stress.sh perf_event 2 2 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_2_2_each cgroup_fj_stress.sh perf_event 2 2 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_none.sh index 5148f774e..8c8d57405 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_2_2_none cgroup_fj_stress.sh perf_event 2 2 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_2_2_none cgroup_fj_stress.sh perf_event 2 2 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_one.sh index 5a1b108c8..5ef36f1fe 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_2_2_one cgroup_fj_stress.sh perf_event 2 2 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_2_2_one cgroup_fj_stress.sh perf_event 2 2 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_each.sh index 663fc0c94..c260e6b4a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_2_9_each cgroup_fj_stress.sh perf_event 2 9 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_2_9_each cgroup_fj_stress.sh perf_event 2 9 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_none.sh index 0c09c23c8..cb1145e8f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_2_9_none cgroup_fj_stress.sh perf_event 2 9 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_2_9_none cgroup_fj_stress.sh perf_event 2 9 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_one.sh index dd6689038..c17b03c00 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_2_9_one cgroup_fj_stress.sh perf_event 2 9 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_2_9_one cgroup_fj_stress.sh perf_event 2 9 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_each.sh index 59ace8e68..3b30051c0 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_3_3_each cgroup_fj_stress.sh perf_event 3 3 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_3_3_each cgroup_fj_stress.sh perf_event 3 3 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_none.sh index 97443d720..ac1f2789e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_3_3_none cgroup_fj_stress.sh perf_event 3 3 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_3_3_none cgroup_fj_stress.sh perf_event 3 3 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_one.sh index d396651b6..340456b3d 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_3_3_one cgroup_fj_stress.sh perf_event 3 3 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_3_3_one cgroup_fj_stress.sh perf_event 3 3 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_each.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_each.sh index 57267ed14..f4ab977df 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_each.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_each.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_4_4_each cgroup_fj_stress.sh perf_event 4 4 each - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_4_4_each cgroup_fj_stress.sh perf_event 4 4 each failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_none.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_none.sh index b8baabd59..05440cae7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_none.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_none.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_4_4_none cgroup_fj_stress.sh perf_event 4 4 none - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_4_4_none cgroup_fj_stress.sh perf_event 4 4 none failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_one.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_one.sh index 0be4cf5fe..20e1d2095 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_one.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_one.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_fj_stress_perf_event_4_4_one cgroup_fj_stress.sh perf_event 4 4 one - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_fj_stress_perf_event_4_4_one cgroup_fj_stress.sh perf_event 4 4 one failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_xattr.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_xattr.sh index 188f70d3f..c1d0dc098 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_xattr.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_xattr.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cgroup_xattr cgroup_xattr - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cgroup_xattr cgroup_xattr failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_controllers.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_controllers.sh index 4537b6672..74fca5239 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_controllers.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_controllers.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s controllers test_controllers.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers controllers test_controllers.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_1.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_1.sh index 44d3b74c1..24c491375 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_1.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuacct_100_1 cpuacct.sh 100 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuacct_100_1 cpuacct.sh 100 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_100.sh index 62dd9b98c..cf1cb447c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuacct_100_100 cpuacct.sh 100 100 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuacct_100_100 cpuacct.sh 100 100 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_10_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_10_10.sh index 91d730883..b8ba381d6 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_10_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_10_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuacct_10_10 cpuacct.sh 10 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuacct_10_10 cpuacct.sh 10 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_1.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_1.sh index 7360669ac..54e8b8dab 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_1.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuacct_1_1 cpuacct.sh 1 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuacct_1_1 cpuacct.sh 1 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_10.sh index 391cf8302..3238aad77 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuacct_1_10 cpuacct.sh 1 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuacct_1_10 cpuacct.sh 1 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_100.sh index 1ebb97ece..e4dd8b870 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuacct_1_100 cpuacct.sh 1 100 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuacct_1_100 cpuacct.sh 1 100 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_base_ops.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_base_ops.sh index 631de4f40..4160dd922 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_base_ops.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_base_ops.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_base_ops cpuset_base_ops_testset.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_base_ops cpuset_base_ops_testset.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_exclusive.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_exclusive.sh index 3f36db04c..bd3dc7f1d 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_exclusive.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_exclusive.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_exclusive cpuset_exclusive_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_exclusive cpuset_exclusive_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hierarchy.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hierarchy.sh index 4c8410846..98b57af27 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hierarchy.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hierarchy.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_hierarchy cpuset_hierarchy_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_hierarchy cpuset_hierarchy_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hotplug.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hotplug.sh index b52cddbef..c7d8f4c84 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hotplug.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hotplug.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_hotplug cpuset_hotplug_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_hotplug cpuset_hotplug_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_inherit.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_inherit.sh index 24af0c8d4..6de9835c9 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_inherit.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_inherit.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_inherit cpuset_inherit_testset.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_inherit cpuset_inherit_testset.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_load_balance.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_load_balance.sh index f8d9eceab..3b32f8d6c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_load_balance.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_load_balance.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_load_balance cpuset_load_balance_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_load_balance cpuset_load_balance_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory.sh index 8621bce25..dddf142c3 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_memory cpuset_memory_testset.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_memory cpuset_memory_testset.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_pressure.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_pressure.sh index 02035ce54..66a63ceca 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_pressure.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_pressure.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_memory_pressure cpuset_memory_pressure_testset.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_memory_pressure cpuset_memory_pressure_testset.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_spread.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_spread.sh index f0516e8de..2280acc74 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_spread.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_spread.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_memory_spread cpuset_memory_spread_testset.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_memory_spread cpuset_memory_spread_testset.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_regression_test.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_regression_test.sh index bb1df8361..5d286df5a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_regression_test.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_regression_test.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_regression_test cpuset_regression_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_regression_test cpuset_regression_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_sched_domains.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_sched_domains.sh index 8b498e38d..218aac73f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_sched_domains.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_sched_domains.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_sched_domains cpuset_sched_domains_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_sched_domains cpuset_sched_domains_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_syscall.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_syscall.sh index e53a86283..6de1a2479 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_syscall.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_syscall.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s cpuset_syscall cpuset_syscall_testset.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers cpuset_syscall cpuset_syscall_testset.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_io_control01.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_io_control01.sh index 7d131a9e6..32f760816 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_io_control01.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_io_control01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s io_control01 io_control01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers io_control01 io_control01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_control.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_control.sh index 9b209e70a..76b302d4a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_control.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_control.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_control memcg_control_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_control memcg_control_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_failcnt.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_failcnt.sh index a24ca294f..3ffce936e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_failcnt.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_failcnt.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_failcnt memcg_failcnt.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_failcnt memcg_failcnt.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_force_empty.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_force_empty.sh index 820f0d364..325e3ef28 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_force_empty.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_force_empty.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_force_empty memcg_force_empty.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_force_empty memcg_force_empty.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_limit_in_bytes.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_limit_in_bytes.sh index 656b37b43..4c288328f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_limit_in_bytes.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_limit_in_bytes.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_limit_in_bytes memcg_limit_in_bytes.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_limit_in_bytes memcg_limit_in_bytes.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_max_usage_in_bytes.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_max_usage_in_bytes.sh index 54fb416bf..9a145fc93 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_max_usage_in_bytes.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_max_usage_in_bytes.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_max_usage_in_bytes memcg_max_usage_in_bytes_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_max_usage_in_bytes memcg_max_usage_in_bytes_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_memsw_limit_in_bytes.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_memsw_limit_in_bytes.sh index 8404a80b8..a58e17b2e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_memsw_limit_in_bytes.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_memsw_limit_in_bytes.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_memsw_limit_in_bytes memcg_memsw_limit_in_bytes_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_memsw_limit_in_bytes memcg_memsw_limit_in_bytes_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_move_charge_at_immigrate.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_move_charge_at_immigrate.sh index 1462b6551..3b0a8fd1c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_move_charge_at_immigrate.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_move_charge_at_immigrate.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_move_charge_at_immigrate memcg_move_charge_at_immigrate_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_move_charge_at_immigrate memcg_move_charge_at_immigrate_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_regression.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_regression.sh index 12d74c81e..48a9db38e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_regression.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_regression.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_regression memcg_regression_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_regression memcg_regression_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat.sh index 34fbdce97..22b9e8d2c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_stat memcg_stat_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_stat memcg_stat_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat_rss.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat_rss.sh index 47560d634..dad5bed1b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat_rss.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat_rss.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_stat_rss memcg_stat_rss.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_stat_rss memcg_stat_rss.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stress.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stress.sh index d46631064..39d052d8b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stress.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stress.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_stress memcg_stress_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_stress memcg_stress_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_subgroup_charge.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_subgroup_charge.sh index 7de7cb0a7..b7cf6f445 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_subgroup_charge.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_subgroup_charge.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_subgroup_charge memcg_subgroup_charge.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_subgroup_charge memcg_subgroup_charge.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_test_3.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_test_3.sh index 03f35092c..49b7eade6 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_test_3.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_test_3.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_test_3 memcg_test_3 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_test_3 memcg_test_3 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_usage_in_bytes.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_usage_in_bytes.sh index 8c58bce02..d425226d3 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_usage_in_bytes.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_usage_in_bytes.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_usage_in_bytes memcg_usage_in_bytes_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_usage_in_bytes memcg_usage_in_bytes_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_use_hierarchy.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_use_hierarchy.sh index f0af7199c..35e525db4 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_use_hierarchy.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_use_hierarchy.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcg_use_hierarchy memcg_use_hierarchy_test.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcg_use_hierarchy memcg_use_hierarchy_test.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol01.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol01.sh index 655713803..91670ac73 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol01.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcontrol01 memcontrol01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcontrol01 memcontrol01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol02.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol02.sh index 4faec1685..62ffeca8c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol02.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcontrol02 memcontrol02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcontrol02 memcontrol02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol03.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol03.sh index e978df890..35d546fbb 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol03.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcontrol03 memcontrol03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcontrol03 memcontrol03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol04.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol04.sh index 873e29e7f..dcc6ffd37 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol04.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s memcontrol04 memcontrol04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers memcontrol04 memcontrol04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_1.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_1.sh index 05a66a9b0..d9ba1e3cf 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_1.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_1_1 pids.sh 1 1 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_1_1 pids.sh 1 1 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_10.sh index 5645355e6..9ad2a113d 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_1_10 pids.sh 1 10 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_1_10 pids.sh 1 10 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_100.sh index c588dde55..2a573f03e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_1_100 pids.sh 1 100 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_1_100 pids.sh 1 100 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_2.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_2.sh index f404ac69e..8a64f2f21 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_2.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_1_2 pids.sh 1 2 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_1_2 pids.sh 1 2 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_50.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_50.sh index 504235ea7..fd3a4e0ab 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_50.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_50.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_1_50 pids.sh 1 50 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_1_50 pids.sh 1 50 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_1.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_1.sh index a8d4e11c9..e85153fc0 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_1.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_2_1 pids.sh 2 1 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_2_1 pids.sh 2 1 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_10.sh index 6a9a726a1..7e7269442 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_2_10 pids.sh 2 10 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_2_10 pids.sh 2 10 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_100.sh index bb2e6f3d5..d7a789539 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_2_100 pids.sh 2 100 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_2_100 pids.sh 2 100 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_2.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_2.sh index 20afc1c84..d00997532 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_2.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_2_2 pids.sh 2 2 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_2_2 pids.sh 2 2 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_50.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_50.sh index 0b6ec5c8a..49bbe509b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_50.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_50.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_2_50 pids.sh 2 50 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_2_50 pids.sh 2 50 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_0.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_0.sh index b0a501ffa..05f6e56f7 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_0.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_0.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_3_0 pids.sh 3 0 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_3_0 pids.sh 3 0 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_1.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_1.sh index 971c5619c..b44670959 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_1.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_3_1 pids.sh 3 1 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_3_1 pids.sh 3 1 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_10.sh index 65ac92aad..f18b7af8e 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_3_10 pids.sh 3 10 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_3_10 pids.sh 3 10 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_100.sh index e2dc7fa62..009f416ba 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_3_100 pids.sh 3 100 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_3_100 pids.sh 3 100 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_50.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_50.sh index 3d015a1e3..dd91d7f43 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_50.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_50.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_3_50 pids.sh 3 50 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_3_50 pids.sh 3 50 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_1.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_1.sh index 44608dbed..1de252637 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_1.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_4_1 pids.sh 4 1 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_4_1 pids.sh 4 1 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_10.sh index 52989d4f4..a09d3decb 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_4_10 pids.sh 4 10 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_4_10 pids.sh 4 10 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_100.sh index a6f0879e0..c21f3c3b0 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_4_100 pids.sh 4 100 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_4_100 pids.sh 4 100 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_2.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_2.sh index 49b6e246e..217b4983f 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_2.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_4_2 pids.sh 4 2 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_4_2 pids.sh 4 2 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_50.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_50.sh index 690a9812d..0d30dcd71 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_50.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_50.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_4_50 pids.sh 4 50 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_4_50 pids.sh 4 50 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_5_1.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_5_1.sh index d10d41a85..e09911cbc 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_5_1.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_5_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_5_1 pids.sh 5 1 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_5_1 pids.sh 5 1 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_1.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_1.sh index 987fbc63f..667f02485 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_1.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_6_1 pids.sh 6 1 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_6_1 pids.sh 6 1 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_10.sh index 7252972e4..13fde1926 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_6_10 pids.sh 6 10 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_6_10 pids.sh 6 10 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_100.sh index 0a7591e83..2fd555090 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_6_100 pids.sh 6 100 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_6_100 pids.sh 6 100 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_2.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_2.sh index fd4789370..72d38a680 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_2.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_6_2 pids.sh 6 2 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_6_2 pids.sh 6 2 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_50.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_50.sh index e58bd06ad..6deefce8a 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_50.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_50.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_6_50 pids.sh 6 50 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_6_50 pids.sh 6 50 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_10.sh index 46a335ae6..03cc531ad 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_7_10 pids.sh 7 10 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_7_10 pids.sh 7 10 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_100.sh index 08f3f78a5..53601debd 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_7_100 pids.sh 7 100 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_7_100 pids.sh 7 100 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_1000.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_1000.sh index cf5922d77..47c3edb77 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_1000.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_1000.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_7_1000 pids.sh 7 1000 100 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_7_1000 pids.sh 7 1000 100 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_50.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_50.sh index 626d1b0cc..0b8b5d90b 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_50.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_50.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_7_50 pids.sh 7 50 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_7_50 pids.sh 7 50 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_500.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_500.sh index 310f37528..ba5b979bf 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_500.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_500.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_7_500 pids.sh 7 500 50 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_7_500 pids.sh 7 500 50 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_10.sh index 255076497..e9719dc64 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_8_10 pids.sh 8 10 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_8_10 pids.sh 8 10 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_100.sh index 876e68223..571cd0038 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_8_100 pids.sh 8 100 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_8_100 pids.sh 8 100 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_2.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_2.sh index 2cc6cae50..1cd998d63 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_2.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_8_2 pids.sh 8 2 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_8_2 pids.sh 8 2 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_50.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_50.sh index b5cd625ae..f0b03eec1 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_50.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_50.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_8_50 pids.sh 8 50 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_8_50 pids.sh 8 50 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_10.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_10.sh index 894e798fe..38b97a495 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_10.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_9_10 pids.sh 9 10 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_9_10 pids.sh 9 10 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_100.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_100.sh index 7f5297e50..6e9c6e9ea 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_100.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_100.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_9_100 pids.sh 9 100 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_9_100 pids.sh 9 100 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_2.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_2.sh index 604515853..8589d491c 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_2.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_9_2 pids.sh 9 2 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_9_2 pids.sh 9 2 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_50.sh b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_50.sh index 592791b17..77044f7fe 100644 --- a/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_50.sh +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_50.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f controllers -s pids_9_50 pids.sh 9 50 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "controllers pids_9_50 pids.sh 9 50 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug02.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug02.sh index c25552921..557d05c1d 100644 --- a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug02.sh +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cpuhotplug -s cpuhotplug02 cpuhotplug02.sh -c 1 -l 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug02 cpuhotplug02.sh -c 1 -l 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug03.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug03.sh index d70fb9ba5..5a41972ef 100644 --- a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug03.sh +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cpuhotplug -s cpuhotplug03 cpuhotplug03.sh -c 1 -l 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug03 cpuhotplug03.sh -c 1 -l 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug04.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug04.sh index 8525a455d..126db8726 100644 --- a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug04.sh +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cpuhotplug -s cpuhotplug04 cpuhotplug04.sh -l 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug04 cpuhotplug04.sh -l 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug05.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug05.sh index 0fdac953f..72db36a27 100644 --- a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug05.sh +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cpuhotplug -s cpuhotplug05 cpuhotplug05.sh -c 1 -l 1 -d /tmp - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug05 cpuhotplug05.sh -c 1 -l 1 -d /tmp failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug06.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug06.sh index ab98c434f..c196fdbb8 100644 --- a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug06.sh +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cpuhotplug -s cpuhotplug06 cpuhotplug06.sh -c 1 -l 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug06 cpuhotplug06.sh -c 1 -l 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug07.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug07.sh index 323bccb41..c83513d6b 100644 --- a/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug07.sh +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f cpuhotplug -s cpuhotplug07 cpuhotplug07.sh -c 1 -l 1 -d /usr/src/linux - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug07 cpuhotplug07.sh -c 1 -l 1 -d /usr/src/linux failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_crash01.sh b/testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_crash01.sh new file mode 100644 index 000000000..c56b2702e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_crash01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crashme crash01 crash01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f crashme -s crash01 crash01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "crashme crash01 crash01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_crash02.sh b/testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_crash02.sh new file mode 100644 index 000000000..81a206dc7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_crash02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crashme crash02 crash02 -v 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f crashme -s crash02 crash02 -v 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "crashme crash02 crash02 -v 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_f00f.sh b/testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_f00f.sh new file mode 100644 index 000000000..d69efb278 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crashme/oe_test_ltp_crashme_f00f.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crashme f00f f00f +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f crashme -s f00f f00f + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "crashme f00f f00f failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg01.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg01.sh index 2d26ef1fb..c8cb6ab44 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg01.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s af_alg01 af_alg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto af_alg01 af_alg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg02.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg02.sh index d6774af45..5d0770b98 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg02.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s af_alg02 af_alg02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto af_alg02 af_alg02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg03.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg03.sh index 6e1c2e8b2..99ed892e4 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg03.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s af_alg03 af_alg03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto af_alg03 af_alg03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg04.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg04.sh index 357c9c8f6..c050041bf 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg04.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s af_alg04 af_alg04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto af_alg04 af_alg04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg05.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg05.sh index d8ea3ae57..44efa5b17 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg05.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s af_alg05 af_alg05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto af_alg05 af_alg05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg06.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg06.sh index c4d0f1a37..59a47a710 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg06.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s af_alg06 af_alg06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto af_alg06 af_alg06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg07.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg07.sh index 5ccf08871..691879772 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg07.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s af_alg07 af_alg07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto af_alg07 af_alg07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user01.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user01.sh index de19c9d64..7492975d9 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user01.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s crypto_user01 crypto_user01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto crypto_user01 crypto_user01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user02.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user02.sh index 1697ada94..deaacfe68 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user02.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s crypto_user02 crypto_user02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto crypto_user02 crypto_user02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_pcrypt_aead01.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_pcrypt_aead01.sh index 6191dfbb9..ae9189050 100644 --- a/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_pcrypt_aead01.sh +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_pcrypt_aead01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f crypto -s pcrypt_aead01 pcrypt_aead01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "crypto pcrypt_aead01 pcrypt_aead01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio01.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio01.sh index 7bec6162e..027bde725 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio01.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio01 diotest1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio01 diotest1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio02.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio02.sh index a1ea1ee2b..7118cf20e 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio02.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio02 diotest2 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio02 diotest2 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio03.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio03.sh index f5f39918a..72fd4fde8 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio03.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio03 diotest3 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio03 diotest3 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio04.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio04.sh index eb7c7c224..e67449eeb 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio04.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio04 diotest4 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio04 diotest4 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio05.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio05.sh index ad30d2094..3e33ed294 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio05.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio05 diotest5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio05 diotest5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio06.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio06.sh index 35bd71805..efc1809da 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio06.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio06 diotest6 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio06 diotest6 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio07.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio07.sh index fa46e25ea..c433be7be 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio07.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio07 diotest1 -b 65536 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio07 diotest1 -b 65536 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio08.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio08.sh index 59364dd04..402aee05c 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio08.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio08 diotest2 -b 65536 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio08 diotest2 -b 65536 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio09.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio09.sh index 9109f8815..c688f0b85 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio09.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio09 diotest3 -b 65536 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio09 diotest3 -b 65536 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio10.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio10.sh index e7db06dbc..2a166d58e 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio10.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio10 diotest4 -b 65536 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio10 diotest4 -b 65536 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio11.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio11.sh index 7b33c6ad1..20564e4ef 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio11.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio11 diotest5 -b 65536 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio11 diotest5 -b 65536 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio12.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio12.sh index 584fc044b..b5ccc2c81 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio12.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio12 diotest6 -b 65536 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio12 diotest6 -b 65536 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio13.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio13.sh index fc6ab8498..2e70a66ef 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio13.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio13 diotest1 -b 65536 -n 2000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio13 diotest1 -b 65536 -n 2000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio14.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio14.sh index 2c31e4429..8226b51d4 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio14.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio14 diotest2 -b 65536 -i 1000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio14 diotest2 -b 65536 -i 1000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio15.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio15.sh index d38c47dcb..3384461b8 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio15.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio15.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio15 diotest3 -b 65536 -i 1000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio15 diotest3 -b 65536 -i 1000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio16.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio16.sh index 741b7aaad..2d722edff 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio16.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio16 diotest5 -b 65536 -i 1000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio16 diotest5 -b 65536 -i 1000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio17.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio17.sh index 0fab538df..7eadf1a45 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio17.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio17.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio17 diotest6 -b 65536 -i 1000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio17 diotest6 -b 65536 -i 1000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio18.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio18.sh index 03a201c19..4579c3697 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio18.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio18.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio18 diotest2 -b 65536 -i 1000 -o 1024000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio18 diotest2 -b 65536 -i 1000 -o 1024000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio19.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio19.sh index f1a6cb463..012ddf03a 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio19.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio19.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio19 diotest3 -b 65536 -i 1000 -o 1024000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio19 diotest3 -b 65536 -i 1000 -o 1024000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio20.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio20.sh index 02a219d7e..639c359fe 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio20.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio20.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio20 diotest5 -b 65536 -i 1000 -o 1024000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio20 diotest5 -b 65536 -i 1000 -o 1024000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio21.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio21.sh index 0bde0a65b..197bd8f9b 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio21.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio21.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio21 diotest6 -b 65536 -i 1000 -o 1024000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio21 diotest6 -b 65536 -i 1000 -o 1024000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio22.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio22.sh index 0781e167e..2e5b041e1 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio22.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio22.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio22 diotest2 -b 65536 -i 1000 -o 104857600 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio22 diotest2 -b 65536 -i 1000 -o 104857600 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio23.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio23.sh index f222c1dcd..672221a7e 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio23.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio23.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio23 diotest3 -b 65536 -i 1000 -o 104857600 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio23 diotest3 -b 65536 -i 1000 -o 104857600 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio24.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio24.sh index 997ad331a..bed62c6b3 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio24.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio24.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio24 diotest5 -b 65536 -i 1000 -o 104857600 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio24 diotest5 -b 65536 -i 1000 -o 104857600 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio25.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio25.sh index 418e9b0fb..bb3082d91 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio25.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio25.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio25 diotest6 -b 65536 -i 1000 -o 104857600 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio25 diotest6 -b 65536 -i 1000 -o 104857600 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio26.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio26.sh index 58ae42026..4659bed5d 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio26.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio26.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio26 diotest6 -b 8192 -v 100 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio26 diotest6 -b 8192 -v 100 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio27.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio27.sh index 639e135dc..2930f4506 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio27.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio27.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio27 diotest6 -b 8192 -o 1024000 -i 1000 -v 100 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio27 diotest6 -b 8192 -o 1024000 -i 1000 -v 100 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio28.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio28.sh index 313513a22..7e4c4253e 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio28.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio28.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio28 diotest6 -b 8192 -o 1024000 -i 1000 -v 200 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio28 diotest6 -b 8192 -o 1024000 -i 1000 -v 200 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio29.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio29.sh index 6b1c80785..9d802caf3 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio29.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio29.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio29 diotest3 -b 65536 -n 100 -i 100 -o 1024000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio29 diotest3 -b 65536 -n 100 -i 100 -o 1024000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio30.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio30.sh index 629fc292e..5267fa260 100644 --- a/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio30.sh +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio30.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f dio -s dio30 diotest6 -b 65536 -n 100 -i 100 -o 1024000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "dio dio30 diotest6 -b 65536 -n 100 -i 100 -o 1024000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest1.sh b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest1.sh new file mode 100644 index 000000000..a43e21ec5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dma_thread_diotest dma_thread_diotest1 dma_thread_diotest -a 512 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f dma_thread_diotest -s dma_thread_diotest1 dma_thread_diotest -a 512 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "dma_thread_diotest dma_thread_diotest1 dma_thread_diotest -a 512 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest2.sh b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest2.sh new file mode 100644 index 000000000..8dad453ac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dma_thread_diotest dma_thread_diotest2 dma_thread_diotest -a 1024 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f dma_thread_diotest -s dma_thread_diotest2 dma_thread_diotest -a 1024 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "dma_thread_diotest dma_thread_diotest2 dma_thread_diotest -a 1024 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest3.sh b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest3.sh new file mode 100644 index 000000000..4aa253b75 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest3.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dma_thread_diotest dma_thread_diotest3 dma_thread_diotest -a 1536 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f dma_thread_diotest -s dma_thread_diotest3 dma_thread_diotest -a 1536 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "dma_thread_diotest dma_thread_diotest3 dma_thread_diotest -a 1536 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest4.sh b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest4.sh new file mode 100644 index 000000000..6b85ec44a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest4.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dma_thread_diotest dma_thread_diotest4 dma_thread_diotest -a 2048 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f dma_thread_diotest -s dma_thread_diotest4 dma_thread_diotest -a 2048 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "dma_thread_diotest dma_thread_diotest4 dma_thread_diotest -a 2048 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest5.sh b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest5.sh new file mode 100644 index 000000000..67127d9e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest5.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dma_thread_diotest dma_thread_diotest5 dma_thread_diotest -a 2560 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f dma_thread_diotest -s dma_thread_diotest5 dma_thread_diotest -a 2560 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "dma_thread_diotest dma_thread_diotest5 dma_thread_diotest -a 2560 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest6.sh b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest6.sh new file mode 100644 index 000000000..77bb3319c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dma_thread_diotest dma_thread_diotest6 dma_thread_diotest -a 3072 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f dma_thread_diotest -s dma_thread_diotest6 dma_thread_diotest -a 3072 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "dma_thread_diotest dma_thread_diotest6 dma_thread_diotest -a 3072 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest7.sh b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest7.sh new file mode 100644 index 000000000..d24ad681e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dma_thread_diotest/oe_test_ltp_dma_thread_diotest_dma_thread_diotest7.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dma_thread_diotest dma_thread_diotest7 dma_thread_diotest -a 3584 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f dma_thread_diotest -s dma_thread_diotest7 dma_thread_diotest -a 3584 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "dma_thread_diotest dma_thread_diotest7 dma_thread_diotest -a 3584 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fcntl-locktests/oe_test_ltp_fcntl-locktests_FCNTL_LOCKTESTS.sh b/testcases/system-test/ltp-test/ltp_fcntl-locktests/oe_test_ltp_fcntl-locktests_FCNTL_LOCKTESTS.sh index 356168005..ecbac052a 100644 --- a/testcases/system-test/ltp-test/ltp_fcntl-locktests/oe_test_ltp_fcntl-locktests_FCNTL_LOCKTESTS.sh +++ b/testcases/system-test/ltp-test/ltp_fcntl-locktests/oe_test_ltp_fcntl-locktests_FCNTL_LOCKTESTS.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fcntl-locktests -s FCNTL_LOCKTESTS locktests -n 100 -f /tmp/fcntl_locktest_testfile - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fcntl-locktests FCNTL_LOCKTESTS locktests -n 100 -f /tmp/fcntl_locktest_testfile failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_filecaps/oe_test_ltp_filecaps_Filecaps.sh b/testcases/system-test/ltp-test/ltp_filecaps/oe_test_ltp_filecaps_Filecaps.sh index 20b591913..69e5e21a7 100644 --- a/testcases/system-test/ltp-test/ltp_filecaps/oe_test_ltp_filecaps_Filecaps.sh +++ b/testcases/system-test/ltp-test/ltp_filecaps/oe_test_ltp_filecaps_Filecaps.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f filecaps -s Filecaps filecapstest.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "filecaps Filecaps filecapstest.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc01.sh index 29f67c5e3..144882938 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s binfmt_misc01 binfmt_misc01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs binfmt_misc01 binfmt_misc01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc02.sh index 102cda816..73f396671 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc02.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s binfmt_misc02 binfmt_misc02.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs binfmt_misc02 binfmt_misc02.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_di.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_di.sh index e842df957..1d1f4e9fb 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_di.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_di.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s fs_di fs_di -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs fs_di fs_di -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_fill.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_fill.sh index 0c0925804..6d3778b78 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_fill.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_fill.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s fs_fill fs_fill - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs fs_fill fs_fill failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_inod01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_inod01.sh index ddb479a93..9e231d984 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_inod01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_inod01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s fs_inod01 fs_inod $TMPDIR 10 10 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs fs_inod01 fs_inod $TMPDIR 10 10 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_racer.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_racer.sh index cc5d20a01..c8b16696b 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_racer.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_racer.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s fs_racer fs_racer.sh -t 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs fs_racer fs_racer.sh -t 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest01.sh index 3f4de8d53..7d475fae0 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s ftest01 ftest01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs ftest01 ftest01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest02.sh index 366780740..1f8241553 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest02.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s ftest02 ftest02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs ftest02 ftest02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest03.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest03.sh index c066821c0..f6b43713a 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest03.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s ftest03 ftest03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs ftest03 ftest03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest04.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest04.sh index 93bfbd24c..0d84183d9 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest04.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s ftest04 ftest04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs ftest04 ftest04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest05.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest05.sh index b2926a336..9f500b49a 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest05.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s ftest05 ftest05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs ftest05 ftest05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest06.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest06.sh index e4fb0a83f..5138fdcc9 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest06.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s ftest06 ftest06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs ftest06 ftest06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest07.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest07.sh index e16042537..2b45fae94 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest07.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s ftest07 ftest07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs ftest07 ftest07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest08.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest08.sh index 50ca6543c..a8c96d16e 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest08.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s ftest08 ftest08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs ftest08 ftest08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf01.sh index 81eae36f8..1d076c145 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf01 growfiles -W gf01 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 -f glseek20 -S 2 -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf01 growfiles -W gf01 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 -f glseek20 -S 2 -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf02.sh index 6419227f0..623bac0b9 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf02.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf02 growfiles -W gf02 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf02 growfiles -W gf02 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf03.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf03.sh index 9a32c9596..f96496c4e 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf03.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf03 growfiles -W gf03 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf03 growfiles -W gf03 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf04.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf04.sh index 71e2ba3c7..45397d32c 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf04.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf04 growfiles -W gf04 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf04 growfiles -W gf04 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf05.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf05.sh index 83e0a9c62..7a238a8ef 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf05.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf05 growfiles -W gf05 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf05 growfiles -W gf05 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf06.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf06.sh index 1fb67c8f0..daa283819 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf06.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf06 growfiles -W gf06 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -f g_rand10 -S 2 -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf06 growfiles -W gf06 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -f g_rand10 -S 2 -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf07.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf07.sh index 95a205f0f..f3a9dd33f 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf07.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf07 growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p -f g_rand13 -S 2 -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf07 growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p -f g_rand13 -S 2 -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf08.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf08.sh index 01223ab17..9657dad92 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf08.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf08 growfiles -W gf08 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -f g_rand11 -S 2 -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf08 growfiles -W gf08 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -f g_rand11 -S 2 -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf09.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf09.sh index 10696075b..25c64b187 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf09.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf09 growfiles -W gf09 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p -f g_rand12 -S 2 -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf09 growfiles -W gf09 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p -f g_rand12 -S 2 -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf10.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf10.sh index 30027e83f..8a2c77c26 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf10.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf10 growfiles -W gf10 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l -f g_lio14 -S 2 -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf10 growfiles -W gf10 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l -f g_lio14 -S 2 -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf11.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf11.sh index 5b7edf7b6..28d58fadd 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf11.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf11 growfiles -W gf11 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L -f g_lio15 -S 2 -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf11 growfiles -W gf11 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L -f g_lio15 -S 2 -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf12.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf12.sh index 8d2065cc8..a66ad29b3 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf12.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 30 $TMPDIR/gffifo17 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 30 $TMPDIR/gffifo17 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf13.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf13.sh index cb551d68e..00229739b 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf13.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf13 mkfifo $TMPDIR/gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 30 -I r -r 1-4096 $TMPDIR/gffifo18 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf13 mkfifo $TMPDIR/gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 30 -I r -r 1-4096 $TMPDIR/gffifo18 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf14.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf14.sh index 7d7fa69ff..12d5f311e 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf14.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf14 growfiles -W gf14 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 -f glseek19 -S 2 -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf14 growfiles -W gf14 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 -f glseek19 -S 2 -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf15.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf15.sh index d601e545c..f24b8bd7c 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf15.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf15.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf15 growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 -f Lgfile1 -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf15 growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 -f Lgfile1 -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf16.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf16.sh index ca3e0cbab..17cb9dfe0 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf16.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 101 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf16 growfiles -W gf16 -b -e 1 -i 0 -L 120 -u -g 4090 -T 101 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf17.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf17.sh index 386ced492..f3320b442 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf17.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf17.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 101 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf17 growfiles -W gf17 -b -e 1 -i 0 -L 120 -u -g 5000 -T 101 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf18.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf18.sh index 97173fd90..ad06041ad 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf18.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf18.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf18 growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2 -f Lgf04_ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf18 growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2 -f Lgf04_ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf19.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf19.sh index 3f5cdac1b..180a7dc5f 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf19.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf19.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf19 growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf19 growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf20.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf20.sh index eadb976e2..7a3326345 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf20.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf20.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf20 growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 -f gfbigio-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf20 growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 -f gfbigio-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf21.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf21.sh index 0ef4400ea..24deef2d8 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf21.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf21.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf21 growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 -f gf-bld-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf21 growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 -f gf-bld-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf22.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf22.sh index a0469968c..fa1a7c795 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf22.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf22.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf22 growfiles -W gf22 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 -f gf-bldf-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf22 growfiles -W gf22 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 -f gf-bldf-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf23.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf23.sh index db48e7061..2e3bf4478 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf23.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf23.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf23 growfiles -W gf23 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 -f gf-inf-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf23 growfiles -W gf23 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 -f gf-inf-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf24.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf24.sh index 83f040a9a..a496509dd 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf24.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf24.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf24 growfiles -W gf24 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -f gf-jbld-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf24 growfiles -W gf24 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -f gf-jbld-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf25.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf25.sh index 405968806..7aae99288 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf25.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf25.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf25 growfiles -W gf25 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 -f gf-large-gs-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf25 growfiles -W gf25 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 -f gf-large-gs-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf26.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf26.sh index 411bc200b..3cd6e1fca 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf26.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf26.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf26 growfiles -W gf26 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 -f gfsmallio-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf26 growfiles -W gf26 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 -f gfsmallio-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf27.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf27.sh index 5e0a749d3..667f3e7e7 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf27.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf27.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf27 growfiles -W gf27 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u -f gfsparse-1-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf27 growfiles -W gf27 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u -f gfsparse-1-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf28.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf28.sh index fcd851cef..9b7121e09 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf28.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf28.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf28 growfiles -W gf28 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u -f gfsparse-2-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf28 growfiles -W gf28 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u -f gfsparse-2-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf29.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf29.sh index f005c08d6..0288010da 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf29.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf29.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf29 growfiles -W gf29 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u -f gfsparse-3-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf29 growfiles -W gf29 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u -f gfsparse-3-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf30.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf30.sh index 576921728..315c32d42 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf30.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf30.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s gf30 growfiles -W gf30 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 -f gf-sync-$$ -d $TMPDIR - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs gf30 growfiles -W gf30 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 -f gf-sync-$$ -d $TMPDIR failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode01.sh index e93dfdd53..ac4c135ba 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s inode01 inode01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs inode01 inode01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode02.sh index 616522471..d75c455c3 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode02.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s inode02 inode02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs inode02 inode02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_iogen01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_iogen01.sh index 7076b1b66..9e53be429 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_iogen01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_iogen01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s iogen01 export LTPROOT; rwtest -N iogen01 -i 120s -s read,write -Da -Dv -n 2 500b:$TMPDIR/doio.f1.$$ 1000b:$TMPDIR/doio.f2.$$ - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs iogen01 export LTPROOT; rwtest -N iogen01 -i 120s -s read,write -Da -Dv -n 2 500b:$TMPDIR/doio.f1.$$ 1000b:$TMPDIR/doio.f2.$$ failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_isofs.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_isofs.sh index 206cc6a06..9e6f095f5 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_isofs.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_isofs.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s isofs isofs.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs isofs isofs.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_lftest01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_lftest01.sh index b3d1b4dfd..e01dda730 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_lftest01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_lftest01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s lftest01 lftest - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs lftest01 lftest failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_linker01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_linker01.sh index 1ecc962ff..ec74b6a17 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_linker01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_linker01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s linker01 linktest.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs linker01 linktest.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_openfile01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_openfile01.sh index a6220489c..4b614747e 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_openfile01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_openfile01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s openfile01 openfile -f10 -t10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs openfile01 openfile -f10 -t10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_proc01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_proc01.sh index 8a3894466..04464deda 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_proc01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_proc01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s proc01 proc01 -m 128 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs proc01 proc01 -m 128 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_quota_remount_test01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_quota_remount_test01.sh index b997e29d6..bb3a21634 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_quota_remount_test01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_quota_remount_test01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s quota_remount_test01 quota_remount_test01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs quota_remount_test01 quota_remount_test01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_dev.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_dev.sh index 0ddea1384..c0d8a163a 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_dev.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_dev.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s read_all_dev read_all -d /dev -p -q -r 3 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs read_all_dev read_all -d /dev -p -q -r 3 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_proc.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_proc.sh index 010597cd4..9a7124317 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_proc.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_proc.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s read_all_proc read_all -d /proc -q -r 3 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs read_all_proc read_all -d /proc -q -r 3 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_sys.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_sys.sh index 04880717f..b1fdbfb02 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_sys.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_sys.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s read_all_sys read_all -d /sys -q -r 3 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs read_all_sys read_all -d /sys -q -r 3 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest01.sh index 1166172ce..3c84ad31e 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s rwtest01 export LTPROOT; rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:$TMPDIR/rw-sync-$$ - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs rwtest01 export LTPROOT; rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:$TMPDIR/rw-sync-$$ failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest02.sh index 1d09ae62e..7032b0c04 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest02.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s rwtest02 export LTPROOT; rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:$TMPDIR/rw-buffered-$$ - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs rwtest02 export LTPROOT; rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:$TMPDIR/rw-buffered-$$ failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest03.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest03.sh index 19fc15f92..312fc99cf 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest03.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s rwtest03 export LTPROOT; rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:$TMPDIR/mm-buff-$$ - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs rwtest03 export LTPROOT; rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:$TMPDIR/mm-buff-$$ failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest04.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest04.sh index 3b6326643..789c0fa2e 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest04.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s rwtest04 export LTPROOT; rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:$TMPDIR/mm-sync-$$ - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs rwtest04 export LTPROOT; rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:$TMPDIR/mm-sync-$$ failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest05.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest05.sh index 86721f058..13cadc795 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest05.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s rwtest05 export LTPROOT; rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:$TMPDIR/rwtest01%f - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs rwtest05 export LTPROOT; rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:$TMPDIR/rwtest01%f failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_squashfs01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_squashfs01.sh index 441e57682..faa169523 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_squashfs01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_squashfs01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s squashfs01 squashfs01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs squashfs01 squashfs01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream01.sh index ebab70802..19d31a658 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s stream01 stream01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs stream01 stream01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream02.sh index d9837c882..ccee6c07e 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream02.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s stream02 stream02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs stream02 stream02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream03.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream03.sh index 005127bc1..c9fdb99b1 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream03.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s stream03 stream03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs stream03 stream03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream04.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream04.sh index 38055a1b6..fbab23991 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream04.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s stream04 stream04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs stream04 stream04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream05.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream05.sh index 03976f61e..3a8234bf1 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream05.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s stream05 stream05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs stream05 stream05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_writetest01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_writetest01.sh index e6efdb2b1..49540f0fd 100644 --- a/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_writetest01.sh +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_writetest01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs -s writetest01 writetest - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs writetest01 writetest failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind01_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind01_sh.sh index dbf0ee630..923335ca1 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind01_sh fs_bind01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind01_sh fs_bind01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind02_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind02_sh.sh index 7b85cdec0..fbb561e0e 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind02_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind02_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind02_sh fs_bind02.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind02_sh fs_bind02.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind03_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind03_sh.sh index c8f0ec2b5..792b44808 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind03_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind03_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind03_sh fs_bind03.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind03_sh fs_bind03.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind04_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind04_sh.sh index 582bde1bb..d6d7fcc1c 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind04_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind04_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind04_sh fs_bind04.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind04_sh fs_bind04.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind05_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind05_sh.sh index 2c76a8ceb..dd41c8571 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind05_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind05_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind05_sh fs_bind05.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind05_sh fs_bind05.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind06_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind06_sh.sh index c458a83b8..bfc683291 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind06_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind06_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind06_sh fs_bind06.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind06_sh fs_bind06.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07-2_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07-2_sh.sh index a340ce260..f9df59d10 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07-2_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07-2_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind07-2_sh fs_bind07-2.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind07-2_sh fs_bind07-2.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07_sh.sh index b9e4c472f..d92dae93c 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind07_sh fs_bind07.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind07_sh fs_bind07.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind08_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind08_sh.sh index cb0f0c986..21bc23f65 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind08_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind08_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind08_sh fs_bind08.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind08_sh fs_bind08.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind09_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind09_sh.sh index 743192cd6..fc08368e3 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind09_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind09_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind09_sh fs_bind09.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind09_sh fs_bind09.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind10_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind10_sh.sh index 58edfa8aa..101b6afdd 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind10_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind10_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind10_sh fs_bind10.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind10_sh fs_bind10.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind11_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind11_sh.sh index 02dbeba38..b9b2b9c84 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind11_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind11_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind11_sh fs_bind11.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind11_sh fs_bind11.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind12_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind12_sh.sh index 0b3d4d0ae..fc6cd6cda 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind12_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind12_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind12_sh fs_bind12.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind12_sh fs_bind12.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind13_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind13_sh.sh index b7087e2ec..18d01bc09 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind13_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind13_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind13_sh fs_bind13.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind13_sh fs_bind13.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind14_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind14_sh.sh index 34187fbcf..130a00c16 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind14_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind14_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind14_sh fs_bind14.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind14_sh fs_bind14.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind15_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind15_sh.sh index 045d557d8..0fd8c5e4d 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind15_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind15_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind15_sh fs_bind15.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind15_sh fs_bind15.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind16_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind16_sh.sh index 08ee7f9b9..28abb813a 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind16_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind16_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind16_sh fs_bind16.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind16_sh fs_bind16.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind17_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind17_sh.sh index ef1d6c23d..104c9738b 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind17_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind17_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind17_sh fs_bind17.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind17_sh fs_bind17.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind18_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind18_sh.sh index 20acd925c..a8aaae2c8 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind18_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind18_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind18_sh fs_bind18.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind18_sh fs_bind18.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind19_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind19_sh.sh index 3357cb23b..6a0859a06 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind19_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind19_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind19_sh fs_bind19.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind19_sh fs_bind19.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind20_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind20_sh.sh index e98399754..e294787a8 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind20_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind20_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind20_sh fs_bind20.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind20_sh fs_bind20.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind21_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind21_sh.sh index 1b1cddefb..17866f8b2 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind21_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind21_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind21_sh fs_bind21.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind21_sh fs_bind21.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind22_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind22_sh.sh index 5b57404c8..142df0b03 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind22_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind22_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind22_sh fs_bind22.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind22_sh fs_bind22.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind23_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind23_sh.sh index 637985953..e5d02c103 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind23_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind23_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind23_sh fs_bind23.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind23_sh fs_bind23.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind24_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind24_sh.sh index 85a1e687f..dcbcb7b76 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind24_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind24_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind24_sh fs_bind24.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind24_sh fs_bind24.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS01_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS01_sh.sh index 8aaabd232..171a3080f 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_cloneNS01_sh fs_bind_cloneNS01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS01_sh fs_bind_cloneNS01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS02_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS02_sh.sh index a0376d2d7..7a97dedbe 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS02_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS02_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_cloneNS02_sh fs_bind_cloneNS02.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS02_sh fs_bind_cloneNS02.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS03_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS03_sh.sh index b7ea704ed..9889150d0 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS03_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS03_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_cloneNS03_sh fs_bind_cloneNS03.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS03_sh fs_bind_cloneNS03.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS04_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS04_sh.sh index f15fdb7eb..4e0a141ec 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS04_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS04_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_cloneNS04_sh fs_bind_cloneNS04.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS04_sh fs_bind_cloneNS04.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS05_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS05_sh.sh index bf2e6252e..14239303c 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS05_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS05_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_cloneNS05_sh fs_bind_cloneNS05.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS05_sh fs_bind_cloneNS05.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS06_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS06_sh.sh index dbac4e84b..f192c9198 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS06_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS06_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_cloneNS06_sh fs_bind_cloneNS06.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS06_sh fs_bind_cloneNS06.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS07_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS07_sh.sh index f1780306f..9d7e8cb8f 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS07_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS07_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_cloneNS07_sh fs_bind_cloneNS07.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS07_sh fs_bind_cloneNS07.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move01_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move01_sh.sh index bd2e75ec5..40210a293 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move01_sh fs_bind_move01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move01_sh fs_bind_move01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move02_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move02_sh.sh index a0ef7f807..ebc9ec4a1 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move02_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move02_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move02_sh fs_bind_move02.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move02_sh fs_bind_move02.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move03_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move03_sh.sh index 45dfba588..c279b4c8f 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move03_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move03_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move03_sh fs_bind_move03.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move03_sh fs_bind_move03.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move04_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move04_sh.sh index b0231fbf6..11a493305 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move04_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move04_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move04_sh fs_bind_move04.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move04_sh fs_bind_move04.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move05_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move05_sh.sh index b0053454b..dac7e4286 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move05_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move05_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move05_sh fs_bind_move05.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move05_sh fs_bind_move05.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move06_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move06_sh.sh index cbc67245a..2edbf0802 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move06_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move06_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move06_sh fs_bind_move06.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move06_sh fs_bind_move06.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move07_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move07_sh.sh index 365013bbe..4d4563667 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move07_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move07_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move07_sh fs_bind_move07.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move07_sh fs_bind_move07.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move08_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move08_sh.sh index d9892e7b4..804df4480 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move08_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move08_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move08_sh fs_bind_move08.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move08_sh fs_bind_move08.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move09_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move09_sh.sh index 6625a98a5..61d711415 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move09_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move09_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move09_sh fs_bind_move09.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move09_sh fs_bind_move09.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move10_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move10_sh.sh index 03622bf99..f8806a540 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move10_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move10_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move10_sh fs_bind_move10.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move10_sh fs_bind_move10.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move11_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move11_sh.sh index 21256bc3e..2d4c3aa33 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move11_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move11_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move11_sh fs_bind_move11.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move11_sh fs_bind_move11.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move12_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move12_sh.sh index 7d2691884..0f86551ad 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move12_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move12_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move12_sh fs_bind_move12.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move12_sh fs_bind_move12.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move13_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move13_sh.sh index e4281dbb8..ac59136b8 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move13_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move13_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move13_sh fs_bind_move13.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move13_sh fs_bind_move13.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move14_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move14_sh.sh index 67aa2a92e..8e863a81b 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move14_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move14_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move14_sh fs_bind_move14.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move14_sh fs_bind_move14.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move15_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move15_sh.sh index 75e952914..44d6e9051 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move15_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move15_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move15_sh fs_bind_move15.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move15_sh fs_bind_move15.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move16_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move16_sh.sh index 8250591b7..1c01b0c22 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move16_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move16_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move16_sh fs_bind_move16.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move16_sh fs_bind_move16.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move17_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move17_sh.sh index eef56ed13..fe1409d12 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move17_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move17_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move17_sh fs_bind_move17.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move17_sh fs_bind_move17.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move18_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move18_sh.sh index eed4a3816..dfeea76b0 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move18_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move18_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move18_sh fs_bind_move18.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move18_sh fs_bind_move18.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move19_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move19_sh.sh index 499faebcc..5750aaf49 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move19_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move19_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move19_sh fs_bind_move19.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move19_sh fs_bind_move19.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move20_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move20_sh.sh index f860c7d84..ae9133286 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move20_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move20_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move20_sh fs_bind_move20.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move20_sh fs_bind_move20.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move21_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move21_sh.sh index f1bb92858..52103f5af 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move21_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move21_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move21_sh fs_bind_move21.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move21_sh fs_bind_move21.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move22_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move22_sh.sh index 5e8a8c2ef..01651ce74 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move22_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move22_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_move22_sh fs_bind_move22.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_move22_sh fs_bind_move22.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind01_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind01_sh.sh index 345ed0722..d40c16665 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind01_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind01_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind01_sh fs_bind_rbind01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind01_sh fs_bind_rbind01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind02_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind02_sh.sh index d50e934bd..984fc760b 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind02_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind02_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind02_sh fs_bind_rbind02.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind02_sh fs_bind_rbind02.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind03_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind03_sh.sh index ff5648e21..70901c469 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind03_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind03_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind03_sh fs_bind_rbind03.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind03_sh fs_bind_rbind03.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind04_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind04_sh.sh index ba60534cd..b4f9023e3 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind04_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind04_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind04_sh fs_bind_rbind04.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind04_sh fs_bind_rbind04.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind05_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind05_sh.sh index e84995ff1..19f6c8d33 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind05_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind05_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind05_sh fs_bind_rbind05.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind05_sh fs_bind_rbind05.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind06_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind06_sh.sh index cf41d8af3..78c9bef28 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind06_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind06_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind06_sh fs_bind_rbind06.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind06_sh fs_bind_rbind06.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07-2_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07-2_sh.sh index ecb659b02..5cfa269da 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07-2_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07-2_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind07-2_sh fs_bind_rbind07-2.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind07-2_sh fs_bind_rbind07-2.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07_sh.sh index 08e9f2d0b..a6ebcaac6 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind07_sh fs_bind_rbind07.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind07_sh fs_bind_rbind07.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind08_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind08_sh.sh index c74300cfd..d433fe404 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind08_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind08_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind08_sh fs_bind_rbind08.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind08_sh fs_bind_rbind08.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind09_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind09_sh.sh index ae428cf18..d890533cc 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind09_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind09_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind09_sh fs_bind_rbind09.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind09_sh fs_bind_rbind09.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind10_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind10_sh.sh index 1a6424933..4d432962b 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind10_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind10_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind10_sh fs_bind_rbind10.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind10_sh fs_bind_rbind10.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind11_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind11_sh.sh index 3970efd19..268206e2a 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind11_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind11_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind11_sh fs_bind_rbind11.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind11_sh fs_bind_rbind11.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind12_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind12_sh.sh index 5ea8b6490..7fad00fc4 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind12_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind12_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind12_sh fs_bind_rbind12.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind12_sh fs_bind_rbind12.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind13_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind13_sh.sh index 2acb642fc..982f89ff0 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind13_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind13_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind13_sh fs_bind_rbind13.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind13_sh fs_bind_rbind13.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind14_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind14_sh.sh index 2504f1853..a17a7015c 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind14_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind14_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind14_sh fs_bind_rbind14.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind14_sh fs_bind_rbind14.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind15_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind15_sh.sh index 8ece9f578..4cd1483c0 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind15_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind15_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind15_sh fs_bind_rbind15.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind15_sh fs_bind_rbind15.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind16_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind16_sh.sh index ce8efde89..d390bdb27 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind16_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind16_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind16_sh fs_bind_rbind16.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind16_sh fs_bind_rbind16.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind17_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind17_sh.sh index dfd0d15cc..ef3059e1f 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind17_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind17_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind17_sh fs_bind_rbind17.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind17_sh fs_bind_rbind17.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind18_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind18_sh.sh index e9fb9762f..bb95b6736 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind18_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind18_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind18_sh fs_bind_rbind18.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind18_sh fs_bind_rbind18.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind19_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind19_sh.sh index 1dde2dcd8..5358f1aa8 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind19_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind19_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind19_sh fs_bind_rbind19.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind19_sh fs_bind_rbind19.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind20_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind20_sh.sh index fb158a25d..3e40e8665 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind20_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind20_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind20_sh fs_bind_rbind20.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind20_sh fs_bind_rbind20.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind21_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind21_sh.sh index 647dd97b7..9a6e182ba 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind21_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind21_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind21_sh fs_bind_rbind21.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind21_sh fs_bind_rbind21.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind22_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind22_sh.sh index ffeced000..9056fb18e 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind22_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind22_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind22_sh fs_bind_rbind22.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind22_sh fs_bind_rbind22.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind23_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind23_sh.sh index ed59f71e2..15f1a89ba 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind23_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind23_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind23_sh fs_bind_rbind23.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind23_sh fs_bind_rbind23.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind24_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind24_sh.sh index 20d2c278d..d1e388968 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind24_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind24_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind24_sh fs_bind_rbind24.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind24_sh fs_bind_rbind24.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind25_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind25_sh.sh index 58ca2962f..deb66eb45 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind25_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind25_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind25_sh fs_bind_rbind25.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind25_sh fs_bind_rbind25.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind26_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind26_sh.sh index 533433e26..e97eefa75 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind26_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind26_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind26_sh fs_bind_rbind26.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind26_sh fs_bind_rbind26.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind27_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind27_sh.sh index db06980ae..b56344622 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind27_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind27_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind27_sh fs_bind_rbind27.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind27_sh fs_bind_rbind27.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind28_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind28_sh.sh index 7858db202..9d6ac90fc 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind28_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind28_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind28_sh fs_bind_rbind28.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind28_sh fs_bind_rbind28.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind29_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind29_sh.sh index b6e4ba61c..9f89271e9 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind29_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind29_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind29_sh fs_bind_rbind29.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind29_sh fs_bind_rbind29.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind30_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind30_sh.sh index 78574a0b8..cbbe66792 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind30_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind30_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind30_sh fs_bind_rbind30.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind30_sh fs_bind_rbind30.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind31_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind31_sh.sh index e8d992f2a..5cd10586d 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind31_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind31_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind31_sh fs_bind_rbind31.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind31_sh fs_bind_rbind31.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind32_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind32_sh.sh index eab129c9f..f408596b9 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind32_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind32_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind32_sh fs_bind_rbind32.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind32_sh fs_bind_rbind32.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind33_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind33_sh.sh index 2ea8be29c..180688e70 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind33_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind33_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind33_sh fs_bind_rbind33.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind33_sh fs_bind_rbind33.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind34_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind34_sh.sh index 9f994ad39..3d91f7c52 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind34_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind34_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind34_sh fs_bind_rbind34.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind34_sh fs_bind_rbind34.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind35_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind35_sh.sh index 84e995efd..8c3a9f062 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind35_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind35_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind35_sh fs_bind_rbind35.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind35_sh fs_bind_rbind35.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind36_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind36_sh.sh index e94e7b50d..b1c301176 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind36_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind36_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind36_sh fs_bind_rbind36.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind36_sh fs_bind_rbind36.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind37_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind37_sh.sh index 690966efd..a3b580b54 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind37_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind37_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind37_sh fs_bind_rbind37.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind37_sh fs_bind_rbind37.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind38_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind38_sh.sh index b6c8007c5..ca15d0d45 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind38_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind38_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind38_sh fs_bind_rbind38.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind38_sh fs_bind_rbind38.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind39_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind39_sh.sh index 12e480784..26b61ff71 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind39_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind39_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_rbind39_sh fs_bind_rbind39.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind39_sh fs_bind_rbind39.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_regression_sh.sh b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_regression_sh.sh index 600ab4262..69f2e3949 100644 --- a/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_regression_sh.sh +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_regression_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_bind -s fs_bind_regression_sh fs_bind_regression.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_bind fs_bind_regression_sh fs_bind_regression.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms01.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms01.sh index 1860e5e2b..69697ef98 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms01.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms01 fs_perms 005 99 99 12 100 x 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms01 fs_perms 005 99 99 12 100 x 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms02.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms02.sh index ac866a4cf..75645a487 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms02.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms02 fs_perms 050 99 99 200 99 x 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms02 fs_perms 050 99 99 200 99 x 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms03.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms03.sh index a866dbc09..0e1d6c195 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms03.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms03 fs_perms 500 99 99 99 500 x 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms03 fs_perms 500 99 99 99 500 x 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms04.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms04.sh index d273ffbf6..73a3f8641 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms04.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms04 fs_perms 002 99 99 12 100 w 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms04 fs_perms 002 99 99 12 100 w 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms05.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms05.sh index 32bf8ca55..7241615f5 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms05.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms05 fs_perms 020 99 99 200 99 w 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms05 fs_perms 020 99 99 200 99 w 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms06.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms06.sh index 802665d1b..5340d9b17 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms06.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms06 fs_perms 200 99 99 99 500 w 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms06 fs_perms 200 99 99 99 500 w 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms07.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms07.sh index b6f78f8fc..8263b11b4 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms07.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms07 fs_perms 004 99 99 12 100 r 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms07 fs_perms 004 99 99 12 100 r 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms08.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms08.sh index a64997e91..da5f5fc11 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms08.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms08 fs_perms 040 99 99 200 99 r 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms08 fs_perms 040 99 99 200 99 r 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms09.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms09.sh index 18952c139..fac7f94bf 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms09.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms09 fs_perms 400 99 99 99 500 r 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms09 fs_perms 400 99 99 99 500 r 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms10.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms10.sh index 3c44f945f..d94d4fe5b 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms10.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms10 fs_perms 000 99 99 99 99 r 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms10 fs_perms 000 99 99 99 99 r 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms11.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms11.sh index fd4fd48f7..10eb9315d 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms11.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms11 fs_perms 000 99 99 99 99 w 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms11 fs_perms 000 99 99 99 99 w 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms12.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms12.sh index 10587a981..f97f4a43c 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms12.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms12 fs_perms 000 99 99 99 99 x 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms12 fs_perms 000 99 99 99 99 x 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms13.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms13.sh index 61efdb88b..9dcc59912 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms13.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms13 fs_perms 010 99 99 99 500 x 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms13 fs_perms 010 99 99 99 500 x 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms14.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms14.sh index 7239424fb..e8b270fad 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms14.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms14 fs_perms 100 99 99 200 99 x 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms14 fs_perms 100 99 99 200 99 x 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms15.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms15.sh index 54c893a26..12cbfd20f 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms15.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms15.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms15 fs_perms 020 99 99 99 500 w 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms15 fs_perms 020 99 99 99 500 w 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms16.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms16.sh index 81183d98c..348bceed3 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms16.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms16 fs_perms 200 99 99 200 99 w 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms16 fs_perms 200 99 99 200 99 w 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms17.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms17.sh index 8a2228f22..cd32df336 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms17.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms17.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms17 fs_perms 040 99 99 99 500 r 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms17 fs_perms 040 99 99 99 500 r 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms18.sh b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms18.sh index 452d546cf..649f07ece 100644 --- a/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms18.sh +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms18.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f fs_perms_simple -s fs_perms18 fs_perms 400 99 99 200 99 r 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms18 fs_perms 400 99 99 200 99 r 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind01.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind01.sh new file mode 100644 index 000000000..89abe0543 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind01 test_robind.sh -c "growfiles -W gf01 -b -e 1 -u -i 0 -L 5 -w -C 1 -l -I r -T 10 glseek20 glseek20.2" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind01 test_robind.sh -c "growfiles -W gf01 -b -e 1 -u -i 0 -L 5 -w -C 1 -l -I r -T 10 glseek20 glseek20.2" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind01 test_robind.sh -c "growfiles -W gf01 -b -e 1 -u -i 0 -L 5 -w -C 1 -l -I r -T 10 glseek20 glseek20.2" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind02.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind02.sh new file mode 100644 index 000000000..eb3d8f3c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind02 test_robind.sh -c "growfiles -W gf02 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind02 test_robind.sh -c "growfiles -W gf02 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind02 test_robind.sh -c "growfiles -W gf02 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind03.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind03.sh new file mode 100644 index 000000000..eec5da895 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind03 test_robind.sh -c "growfiles -W gf03 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind03 test_robind.sh -c "growfiles -W gf03 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind03 test_robind.sh -c "growfiles -W gf03 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind04.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind04.sh new file mode 100644 index 000000000..4ce516da3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind04 test_robind.sh -c "growfiles -W gf04 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind04 test_robind.sh -c "growfiles -W gf04 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind04 test_robind.sh -c "growfiles -W gf04 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind05.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind05.sh new file mode 100644 index 000000000..c8860d0d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind05 test_robind.sh -c "growfiles -W gf05 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind05 test_robind.sh -c "growfiles -W gf05 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind05 test_robind.sh -c "growfiles -W gf05 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind06.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind06.sh new file mode 100644 index 000000000..cf905b64a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind06 test_robind.sh -c "growfiles -W gf06 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 3 -C 1 g_rand10 g_rand10.2" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind06 test_robind.sh -c "growfiles -W gf06 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 3 -C 1 g_rand10 g_rand10.2" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind06 test_robind.sh -c "growfiles -W gf06 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 3 -C 1 g_rand10 g_rand10.2" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind07.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind07.sh new file mode 100644 index 000000000..32dbb0292 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind07 test_robind.sh -c "growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 3 -C 1 -I p g_rand13 g_rand13.2" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind07 test_robind.sh -c "growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 3 -C 1 -I p g_rand13 g_rand13.2" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind07 test_robind.sh -c "growfiles -W gf07 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 3 -C 1 -I p g_rand13 g_rand13.2" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind08.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind08.sh new file mode 100644 index 000000000..f7a50a2f2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind08 test_robind.sh -c "growfiles -W gf08 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 3 -C 1 g_rand11 g_rand11.2" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind08 test_robind.sh -c "growfiles -W gf08 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 3 -C 1 g_rand11 g_rand11.2" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind08 test_robind.sh -c "growfiles -W gf08 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 3 -C 1 g_rand11 g_rand11.2" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind09.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind09.sh new file mode 100644 index 000000000..b61569578 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind09 test_robind.sh -c "growfiles -W gf09 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 3 -C 1 -I p g_rand12 g_rand12.2" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind09 test_robind.sh -c "growfiles -W gf09 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 3 -C 1 -I p g_rand12 g_rand12.2" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind09 test_robind.sh -c "growfiles -W gf09 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 3 -C 1 -I p g_rand12 g_rand12.2" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind10.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind10.sh new file mode 100644 index 000000000..966029b1d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind10 test_robind.sh -c "growfiles -W gf10 -b -e 1 -u -r 1-5000 -i 0 -L 3 -C 1 -I l g_lio14 g_lio14.2" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind10 test_robind.sh -c "growfiles -W gf10 -b -e 1 -u -r 1-5000 -i 0 -L 3 -C 1 -I l g_lio14 g_lio14.2" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind10 test_robind.sh -c "growfiles -W gf10 -b -e 1 -u -r 1-5000 -i 0 -L 3 -C 1 -I l g_lio14 g_lio14.2" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind11.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind11.sh new file mode 100644 index 000000000..3646f2c9b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind11 test_robind.sh -c "growfiles -W gf11 -b -e 1 -u -r 1-5000 -i 0 -L 3 -C 1 -I L g_lio15 g_lio15.2" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind11 test_robind.sh -c "growfiles -W gf11 -b -e 1 -u -r 1-5000 -i 0 -L 3 -C 1 -I L g_lio15 g_lio15.2" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind11 test_robind.sh -c "growfiles -W gf11 -b -e 1 -u -r 1-5000 -i 0 -L 3 -C 1 -I L g_lio15 g_lio15.2" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind12.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind12.sh new file mode 100644 index 000000000..c8fc135c9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind12 test_robind.sh -c "mkfifo gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 3 gffifo17" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind12 test_robind.sh -c "mkfifo gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 3 gffifo17" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind12 test_robind.sh -c "mkfifo gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 3 gffifo17" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind13.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind13.sh new file mode 100644 index 000000000..e2ac4b491 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind13 test_robind.sh -c "mkfifo gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 3 -I r -r 1-4096 gffifo18" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind13 test_robind.sh -c "mkfifo gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 3 -I r -r 1-4096 gffifo18" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind13 test_robind.sh -c "mkfifo gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 3 -I r -r 1-4096 gffifo18" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind14.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind14.sh new file mode 100644 index 000000000..f2e22fd68 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind14 test_robind.sh -c "growfiles -W gf14 -b -e 1 -u -i 0 -L 2 -w -l -C 1 -T 10 glseek19 glseek19.2" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind14 test_robind.sh -c "growfiles -W gf14 -b -e 1 -u -i 0 -L 2 -w -l -C 1 -T 10 glseek19 glseek19.2" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind14 test_robind.sh -c "growfiles -W gf14 -b -e 1 -u -i 0 -L 2 -w -l -C 1 -T 10 glseek19 glseek19.2" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind15.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind15.sh new file mode 100644 index 000000000..ed10683ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind15 test_robind.sh -c "growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 3 Lgfile1" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind15 test_robind.sh -c "growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 3 Lgfile1" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind15 test_robind.sh -c "growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 3 Lgfile1" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind16.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind16.sh new file mode 100644 index 000000000..d6e781dd9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind16 test_robind.sh -c "growfiles -W gf16 -b -e 1 -i 0 -L 3 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind16 test_robind.sh -c "growfiles -W gf16 -b -e 1 -i 0 -L 3 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind16 test_robind.sh -c "growfiles -W gf16 -b -e 1 -i 0 -L 3 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind17.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind17.sh new file mode 100644 index 000000000..31f6abc8e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind17 test_robind.sh -c "growfiles -W gf17 -b -e 1 -i 0 -L 3 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind17 test_robind.sh -c "growfiles -W gf17 -b -e 1 -i 0 -L 3 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind17 test_robind.sh -c "growfiles -W gf17 -b -e 1 -i 0 -L 3 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind18.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind18.sh new file mode 100644 index 000000000..96c391e0b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind18 test_robind.sh -c "growfiles -W gf18 -b -e 1 -i 0 -L 3 -w -u -r 10-5000 -I r -l -S 2 -f Lgf04_" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind18 test_robind.sh -c "growfiles -W gf18 -b -e 1 -i 0 -L 3 -w -u -r 10-5000 -I r -l -S 2 -f Lgf04_" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind18 test_robind.sh -c "growfiles -W gf18 -b -e 1 -i 0 -L 3 -w -u -r 10-5000 -I r -l -S 2 -f Lgf04_" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind19.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind19.sh new file mode 100644 index 000000000..6f0256056 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind19 test_robind.sh -c "growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind19 test_robind.sh -c "growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind19 test_robind.sh -c "growfiles -W gf19 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind20.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind20.sh new file mode 100644 index 000000000..7b171ed8a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind20 test_robind.sh -c "growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind20 test_robind.sh -c "growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind20 test_robind.sh -c "growfiles -W gf20 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind21.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind21.sh new file mode 100644 index 000000000..a266cc86b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind21 test_robind.sh -c "growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind21 test_robind.sh -c "growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind21 test_robind.sh -c "growfiles -W gf21 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind22.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind22.sh new file mode 100644 index 000000000..07dda9afc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind22 test_robind.sh -c "growfiles -W gf22 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind22 test_robind.sh -c "growfiles -W gf22 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind22 test_robind.sh -c "growfiles -W gf22 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind23.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind23.sh new file mode 100644 index 000000000..1840db059 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind23 test_robind.sh -c "growfiles -W gf23 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind23 test_robind.sh -c "growfiles -W gf23 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind23 test_robind.sh -c "growfiles -W gf23 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind24.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind24.sh new file mode 100644 index 000000000..b065d162e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind24 test_robind.sh -c "growfiles -W gf24 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind24 test_robind.sh -c "growfiles -W gf24 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind24 test_robind.sh -c "growfiles -W gf24 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind25.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind25.sh new file mode 100644 index 000000000..4040e2859 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind25 test_robind.sh -c "growfiles -W gf25 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind25 test_robind.sh -c "growfiles -W gf25 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind25 test_robind.sh -c "growfiles -W gf25 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind26.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind26.sh new file mode 100644 index 000000000..448cb3844 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind26 test_robind.sh -c "growfiles -W gf26 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind26 test_robind.sh -c "growfiles -W gf26 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind26 test_robind.sh -c "growfiles -W gf26 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind27.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind27.sh new file mode 100644 index 000000000..8d5458be9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind27 test_robind.sh -c "growfiles -W gf27 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind27 test_robind.sh -c "growfiles -W gf27 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind27 test_robind.sh -c "growfiles -W gf27 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind28.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind28.sh new file mode 100644 index 000000000..bfe82e3c9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind28 test_robind.sh -c "growfiles -W gf28 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind28 test_robind.sh -c "growfiles -W gf28 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind28 test_robind.sh -c "growfiles -W gf28 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind29.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind29.sh new file mode 100644 index 000000000..0515a0fbc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind29 test_robind.sh -c "growfiles -W gf29 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind29 test_robind.sh -c "growfiles -W gf29 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind29 test_robind.sh -c "growfiles -W gf29 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind30.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind30.sh new file mode 100644 index 000000000..949a9dbf0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind30 test_robind.sh -c "growfiles -W gf30 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind30 test_robind.sh -c "growfiles -W gf30 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind30 test_robind.sh -c "growfiles -W gf30 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind31.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind31.sh new file mode 100644 index 000000000..23b38c2c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind31 test_robind.sh -c "rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:rw-sync-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind31 test_robind.sh -c "rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:rw-sync-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind31 test_robind.sh -c "rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:rw-sync-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind32.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind32.sh new file mode 100644 index 000000000..d7555df0a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind32 test_robind.sh -c "rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:rw-buffered-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind32 test_robind.sh -c "rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:rw-buffered-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind32 test_robind.sh -c "rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:rw-buffered-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind33.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind33.sh new file mode 100644 index 000000000..8134beda2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind33 test_robind.sh -c "rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:mm-buff-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind33 test_robind.sh -c "rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:mm-buff-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind33 test_robind.sh -c "rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:mm-buff-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind34.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind34.sh new file mode 100644 index 000000000..f95a261c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind34 test_robind.sh -c "rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:mm-sync-$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind34 test_robind.sh -c "rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:mm-sync-$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind34 test_robind.sh -c "rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:mm-sync-$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind35.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind35.sh new file mode 100644 index 000000000..d40f3589c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind35 test_robind.sh -c "rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:rwtest01%f" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind35 test_robind.sh -c "rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:rwtest01%f" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind35 test_robind.sh -c "rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:rwtest01%f" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind36.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind36.sh new file mode 100644 index 000000000..044fd930a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind36 test_robind.sh -c "rwtest -N iogen01 -i 120s -s read,write -Da -Dv -n 2 500b:doio.f1.$$ 1000b:doio.f2.$$" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind36 test_robind.sh -c "rwtest -N iogen01 -i 120s -s read,write -Da -Dv -n 2 500b:doio.f1.$$ 1000b:doio.f2.$$" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind36 test_robind.sh -c "rwtest -N iogen01 -i 120s -s read,write -Da -Dv -n 2 500b:doio.f1.$$ 1000b:doio.f2.$$" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind37.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind37.sh new file mode 100644 index 000000000..50cd7c404 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind37.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind37 test_robind.sh -c "fs_inod . 10 10 1" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind37 test_robind.sh -c "fs_inod . 10 10 1" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind37 test_robind.sh -c "fs_inod . 10 10 1" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind38.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind38.sh new file mode 100644 index 000000000..29fbab4c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind38.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind38 test_robind.sh -c "openfile -f10 -t10" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind38 test_robind.sh -c "openfile -f10 -t10" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind38 test_robind.sh -c "openfile -f10 -t10" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind39.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind39.sh new file mode 100644 index 000000000..32537bccf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind39.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind39 test_robind.sh -c "inode01" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind39 test_robind.sh -c "inode01" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind39 test_robind.sh -c "inode01" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind40.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind40.sh new file mode 100644 index 000000000..04dde370c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind40.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind40 test_robind.sh -c "inode02" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind40 test_robind.sh -c "inode02" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind40 test_robind.sh -c "inode02" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind41.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind41.sh new file mode 100644 index 000000000..479381759 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind41.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind41 test_robind.sh -c "stream01" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind41 test_robind.sh -c "stream01" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind41 test_robind.sh -c "stream01" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind42.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind42.sh new file mode 100644 index 000000000..e038246b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind42.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind42 test_robind.sh -c "stream02" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind42 test_robind.sh -c "stream02" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind42 test_robind.sh -c "stream02" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind43.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind43.sh new file mode 100644 index 000000000..0be377de2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind43.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind43 test_robind.sh -c "stream03" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind43 test_robind.sh -c "stream03" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind43 test_robind.sh -c "stream03" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind44.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind44.sh new file mode 100644 index 000000000..5334bb127 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind44.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind44 test_robind.sh -c "stream04" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind44 test_robind.sh -c "stream04" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind44 test_robind.sh -c "stream04" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind45.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind45.sh new file mode 100644 index 000000000..ca8eacda0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind45.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind45 test_robind.sh -c "stream05" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind45 test_robind.sh -c "stream05" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind45 test_robind.sh -c "stream05" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind46.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind46.sh new file mode 100644 index 000000000..7a1d5ef02 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind46.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind46 test_robind.sh -c "ftest01" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind46 test_robind.sh -c "ftest01" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind46 test_robind.sh -c "ftest01" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind47.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind47.sh new file mode 100644 index 000000000..54ead7b13 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind47.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind47 test_robind.sh -c "ftest02" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind47 test_robind.sh -c "ftest02" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind47 test_robind.sh -c "ftest02" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind48.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind48.sh new file mode 100644 index 000000000..9ad66c486 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind48.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind48 test_robind.sh -c "ftest03" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind48 test_robind.sh -c "ftest03" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind48 test_robind.sh -c "ftest03" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind49.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind49.sh new file mode 100644 index 000000000..a9a894a79 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind49.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind49 test_robind.sh -c "ftest04" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind49 test_robind.sh -c "ftest04" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind49 test_robind.sh -c "ftest04" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind50.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind50.sh new file mode 100644 index 000000000..012e334d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind50.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind50 test_robind.sh -c "ftest05" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind50 test_robind.sh -c "ftest05" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind50 test_robind.sh -c "ftest05" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind51.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind51.sh new file mode 100644 index 000000000..ff6d0778f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind51.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind51 test_robind.sh -c "ftest06" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind51 test_robind.sh -c "ftest06" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind51 test_robind.sh -c "ftest06" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind52.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind52.sh new file mode 100644 index 000000000..6b7fb354b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind52.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind52 test_robind.sh -c "ftest07" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind52 test_robind.sh -c "ftest07" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind52 test_robind.sh -c "ftest07" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind53.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind53.sh new file mode 100644 index 000000000..8babd983f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind53.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind53 test_robind.sh -c "ftest08" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind53 test_robind.sh -c "ftest08" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind53 test_robind.sh -c "ftest08" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind54.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind54.sh new file mode 100644 index 000000000..7c4b91fa9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind54.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind54 test_robind.sh -c "-- lftest -n 80" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind54 test_robind.sh -c "-- lftest -n 80" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind54 test_robind.sh -c "-- lftest -n 80" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind55.sh b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind55.sh new file mode 100644 index 000000000..183129112 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_readonly/oe_test_ltp_fs_readonly_test_robind55.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fs_readonly test_robind55 test_robind.sh -c "writetest" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f fs_readonly -s test_robind55 test_robind.sh -c "writetest" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "fs_readonly test_robind55 test_robind.sh -c "writetest" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate01.sh index 289315160..bbb0ba9a1 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate01.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugefallocate01 hugefallocate01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugefallocate01 hugefallocate01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate02.sh index aeb0c12f4..90ca72e05 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate02.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugefallocate02 hugefallocate02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugefallocate02 hugefallocate02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork01.sh index 5d487fafe..6e0ed2c1e 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork01.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugefork01 hugefork01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugefork01 hugefork01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork02.sh index a5b255f3b..e7e20ee24 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork02.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugefork02 hugefork02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugefork02 hugefork02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap01.sh index 8f119bf88..39a2b082e 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap01.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap01 hugemmap01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap01 hugemmap01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap02.sh index a364fe3b8..09ffe91fa 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap02.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap02 hugemmap02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap02 hugemmap02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap04.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap04.sh index c822ed57e..d1a4337ae 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap04.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap04 hugemmap04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap04 hugemmap04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05.sh index c87cc01af..915eb42a8 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap05 hugemmap05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap05 hugemmap05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_1.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_1.sh index edcee71b2..7b5d7cd41 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_1.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap05_1 hugemmap05 -m - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap05_1 hugemmap05 -m failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_2.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_2.sh index 22732006f..b1809aaf7 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_2.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap05_2 hugemmap05 -s - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap05_2 hugemmap05 -s failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_3.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_3.sh index 00d79eed2..39dfd1c80 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_3.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_3.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap05_3 hugemmap05 -s -m - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap05_3 hugemmap05 -s -m failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap06.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap06.sh index 623aa913e..066708d2c 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap06.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap06 hugemmap06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap06 hugemmap06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap07.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap07.sh index 9f292fe98..be7343cd1 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap07.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap07 hugemmap07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap07 hugemmap07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap08.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap08.sh index d40b651b6..4d69c516c 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap08.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap08 hugemmap08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap08 hugemmap08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap09.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap09.sh index d7d3084ab..b6e9f95b8 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap09.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap09 hugemmap09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap09 hugemmap09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap10.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap10.sh index 1cacdaefc..de0f5d718 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap10.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap10 hugemmap10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap10 hugemmap10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap11.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap11.sh index bbdf4b52d..98122196f 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap11.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap11 hugemmap11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap11 hugemmap11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap12.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap12.sh index 672fd11a2..7e17d3704 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap12.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap12 hugemmap12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap12 hugemmap12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap13.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap13.sh index 909c45328..43e3acf73 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap13.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap13 hugemmap13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap13 hugemmap13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap14.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap14.sh index 9fad27595..978631acd 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap14.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap14 hugemmap14 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap14 hugemmap14 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap15.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap15.sh index 84aed54ab..f30bd1291 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap15.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap15.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap15 hugemmap15 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap15 hugemmap15 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap16.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap16.sh index 24e2aa2d1..ccd813f8a 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap16.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap16 hugemmap16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap16 hugemmap16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap17.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap17.sh index 55f9dda26..38a913351 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap17.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap17.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap17 hugemmap17 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap17 hugemmap17 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap18.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap18.sh index 317275108..fa12b8cff 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap18.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap18.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap18 hugemmap18 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap18 hugemmap18 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap19.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap19.sh index eaa93adfd..58e94c3d1 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap19.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap19.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap19 hugemmap19 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap19 hugemmap19 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap20.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap20.sh index cfb774cfb..78de7dbb6 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap20.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap20.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap20 hugemmap20 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap20 hugemmap20 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap21.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap21.sh index 57a56cf1a..5f68338df 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap21.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap21.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap21 hugemmap21 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap21 hugemmap21 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap22.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap22.sh index 5e5deddec..7c963cef1 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap22.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap22.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap22 hugemmap22 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap22 hugemmap22 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap23.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap23.sh index eb8212467..cba945f23 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap23.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap23.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap23 hugemmap23 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap23 hugemmap23 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap24.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap24.sh index 18746a345..c4519f9f3 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap24.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap24.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap24 hugemmap24 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap24 hugemmap24 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap25.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap25.sh index bffc4c8cd..1a56e6f81 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap25.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap25.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap25 hugemmap25 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap25 hugemmap25 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap26.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap26.sh index d2422e01a..c65fdf0e3 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap26.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap26.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap26 hugemmap26 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap26 hugemmap26 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap27.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap27.sh index 47fbb99fc..a0a67f24d 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap27.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap27.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap27 hugemmap27 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap27 hugemmap27 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap28.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap28.sh index c9b1892f3..da4fd67e1 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap28.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap28.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap28 hugemmap28 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap28 hugemmap28 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap29.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap29.sh index 65eb1c398..a426b099a 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap29.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap29.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap29 hugemmap29 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap29 hugemmap29 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap30.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap30.sh index 2ad65bc36..606ed4845 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap30.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap30.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap30 hugemmap30 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap30 hugemmap30 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap31.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap31.sh index 491fa6572..53f2fed5d 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap31.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap31.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap31 hugemmap31 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap31 hugemmap31 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap32.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap32.sh index fc53a27c6..5d93faf1a 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap32.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap32.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugemmap32 hugemmap32 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugemmap32 hugemmap32 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat01.sh index 210027353..8621ea8a9 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat01.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmat01 hugeshmat01 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmat01 hugeshmat01 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat02.sh index 18a23237f..8a7627d7e 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat02.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmat02 hugeshmat02 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmat02 hugeshmat02 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat03.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat03.sh index 2103d70e8..3384aaf3a 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat03.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmat03 hugeshmat03 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmat03 hugeshmat03 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat04.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat04.sh index 683e27497..21aa8fd16 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat04.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmat04 hugeshmat04 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmat04 hugeshmat04 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat05.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat05.sh index 5a91eca62..33797023d 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat05.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmat05 hugeshmat05 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmat05 hugeshmat05 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl01.sh index b25539ae9..54e733dac 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl01.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmctl01 hugeshmctl01 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmctl01 hugeshmctl01 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl02.sh index af31d70b6..8e7aa36ac 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl02.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmctl02 hugeshmctl02 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmctl02 hugeshmctl02 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl03.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl03.sh index 7c38ddb69..7e542ad15 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl03.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmctl03 hugeshmctl03 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmctl03 hugeshmctl03 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmdt01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmdt01.sh index df2a1439f..0b7410b2e 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmdt01.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmdt01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmdt01 hugeshmdt01 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmdt01 hugeshmdt01 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget01.sh index df67beb85..c7e587227 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget01.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmget01 hugeshmget01 -i 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmget01 hugeshmget01 -i 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget02.sh index 0a6e80876..30e9dff89 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget02.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmget02 hugeshmget02 -i 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmget02 hugeshmget02 -i 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget03.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget03.sh index df05f1a04..1372a1504 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget03.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmget03 hugeshmget03 -i 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmget03 hugeshmget03 -i 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget05.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget05.sh index c10ba970e..964f94278 100644 --- a/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget05.sh +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hugetlb -s hugeshmget05 hugeshmget05 -i 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hugetlb hugeshmget05 hugeshmget05 -i 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_affinity.sh b/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_affinity.sh index e1cfe534e..c6a33630b 100644 --- a/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_affinity.sh +++ b/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_affinity.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hyperthreading -s smt_smp_affinity smt_smp_affinity.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hyperthreading smt_smp_affinity smt_smp_affinity.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_enabled.sh b/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_enabled.sh index 7a86dad90..5a39aa1ba 100644 --- a/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_enabled.sh +++ b/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_enabled.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f hyperthreading -s smt_smp_enabled smt_smp_enabled.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "hyperthreading smt_smp_enabled smt_smp_enabled.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_evm_overlay.sh b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_evm_overlay.sh new file mode 100644 index 000000000..f37ea6156 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_evm_overlay.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ima evm_overlay evm_overlay.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ima -s evm_overlay evm_overlay.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ima evm_overlay evm_overlay.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_conditionals.sh b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_conditionals.sh new file mode 100644 index 000000000..babb9d99f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_conditionals.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ima ima_conditionals ima_conditionals.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ima -s ima_conditionals ima_conditionals.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ima ima_conditionals ima_conditionals.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_kexec.sh b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_kexec.sh new file mode 100644 index 000000000..e579ea6fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_kexec.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ima ima_kexec ima_kexec.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ima -s ima_kexec ima_kexec.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ima ima_kexec ima_kexec.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_keys.sh b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_keys.sh new file mode 100644 index 000000000..f31611790 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_keys.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ima ima_keys ima_keys.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ima -s ima_keys ima_keys.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ima ima_keys ima_keys.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_measurements.sh b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_measurements.sh new file mode 100644 index 000000000..d604b13d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_measurements.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ima ima_measurements ima_measurements.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ima -s ima_measurements ima_measurements.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ima ima_measurements ima_measurements.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_policy.sh b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_policy.sh new file mode 100644 index 000000000..9dfba570e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_policy.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ima ima_policy ima_policy.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ima -s ima_policy ima_policy.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ima ima_policy ima_policy.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_selinux.sh b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_selinux.sh new file mode 100644 index 000000000..cb7f085d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_selinux.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ima ima_selinux ima_selinux.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ima -s ima_selinux ima_selinux.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ima ima_selinux ima_selinux.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_tpm.sh b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_tpm.sh new file mode 100644 index 000000000..04a751a76 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_tpm.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ima ima_tpm ima_tpm.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ima -s ima_tpm ima_tpm.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ima ima_tpm ima_tpm.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_violations.sh b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_violations.sh new file mode 100644 index 000000000..285f84f3e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ima/oe_test_ltp_ima_ima_violations.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ima ima_violations ima_violations.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ima -s ima_violations ima_violations.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ima ima_violations ima_violations.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input01.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input01.sh index 7d7bebae3..d8e6ddeed 100644 --- a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input01.sh +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f input -s input01 input01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "input input01 input01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input02.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input02.sh index 12eb4042c..801e8a5ed 100644 --- a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input02.sh +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f input -s input02 input02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "input input02 input02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input03.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input03.sh index 0c087f026..93e0b3cd1 100644 --- a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input03.sh +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f input -s input03 input03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "input input03 input03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input04.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input04.sh index 9ca5313ea..7db43f296 100644 --- a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input04.sh +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f input -s input04 input04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "input input04 input04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input05.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input05.sh index 24abda23b..1ed484fbc 100644 --- a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input05.sh +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f input -s input05 input05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "input input05 input05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input06.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input06.sh index 361eea006..04853a63b 100644 --- a/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input06.sh +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f input -s input06 input06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "input input06 input06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_aio01.sh b/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_aio01.sh index a6bb3eeb5..430d79516 100644 --- a/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_aio01.sh +++ b/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_aio01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f io -s aio01 aio01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "io aio01 aio01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_aio02.sh b/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_aio02.sh index cce72f9da..ef79c63cd 100644 --- a/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_aio02.sh +++ b/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_aio02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f io -s aio02 aio02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "io aio02 aio02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_1.sh b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_1.sh index e231ed771..134f5a8d6 100644 --- a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_1.sh +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f ipc -s pipeio_1 pipeio -T pipeio_1 -c 5 -s 4090 -i 100 -b -f x80 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "ipc pipeio_1 pipeio -T pipeio_1 -c 5 -s 4090 -i 100 -b -f x80 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_3.sh b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_3.sh index dffeb4bc9..2e6a20c3a 100644 --- a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_3.sh +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_3.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f ipc -s pipeio_3 pipeio -T pipeio_3 -c 5 -s 4090 -i 100 -u -b -f x80 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "ipc pipeio_3 pipeio -T pipeio_3 -c 5 -s 4090 -i 100 -u -b -f x80 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_4.sh b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_4.sh index 4a3e388b2..5e5f3e460 100644 --- a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_4.sh +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_4.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f ipc -s pipeio_4 pipeio -T pipeio_4 -c 5 -s 4090 -i 100 -u -f x80 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "ipc pipeio_4 pipeio -T pipeio_4 -c 5 -s 4090 -i 100 -u -f x80 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_5.sh b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_5.sh index 4afa2d59d..6d0da6163 100644 --- a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_5.sh +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_5.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f ipc -s pipeio_5 pipeio -T pipeio_5 -c 5 -s 5000 -i 10 -b -f x80 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "ipc pipeio_5 pipeio -T pipeio_5 -c 5 -s 5000 -i 10 -b -f x80 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_6.sh b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_6.sh index c895adcb5..d2f37882e 100644 --- a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_6.sh +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_6.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f ipc -s pipeio_6 pipeio -T pipeio_6 -c 5 -s 5000 -i 10 -b -u -f x80 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "ipc pipeio_6 pipeio -T pipeio_6 -c 5 -s 5000 -i 10 -b -u -f x80 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_8.sh b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_8.sh index 63c3dc8ac..7446e8785 100644 --- a/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_8.sh +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_8.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f ipc -s pipeio_8 pipeio -T pipeio_8 -c 5 -s 5000 -i 10 -u -f x80 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "ipc pipeio_8 pipeio -T pipeio_8 -c 5 -s 5000 -i 10 -u -f x80 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_irq/oe_test_ltp_irq_irqbalance01.sh b/testcases/system-test/ltp-test/ltp_irq/oe_test_ltp_irq_irqbalance01.sh index e6956b725..9254169f6 100644 --- a/testcases/system-test/ltp-test/ltp_irq/oe_test_ltp_irq_irqbalance01.sh +++ b/testcases/system-test/ltp-test/ltp_irq/oe_test_ltp_irq_irqbalance01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f irq -s irqbalance01 irqbalance01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "irq irqbalance01 irqbalance01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_aslr01.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_aslr01.sh new file mode 100644 index 000000000..6dbe6e695 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_aslr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_kernel_misc aslr01 aslr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f kernel_misc -s aslr01 aslr01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "kernel_misc aslr01 aslr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_block_dev.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_block_dev.sh index 79d535686..d68f047e1 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_block_dev.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_block_dev.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s block_dev block_dev - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc block_dev block_dev failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cn_pec_sh.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cn_pec_sh.sh index 6a826d752..a5f74ecea 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cn_pec_sh.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cn_pec_sh.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s cn_pec_sh cn_pec.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc cn_pec_sh cn_pec.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cpufreq_boost.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cpufreq_boost.sh index f25c31eb5..444fc7989 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cpufreq_boost.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cpufreq_boost.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s cpufreq_boost cpufreq_boost - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc cpufreq_boost cpufreq_boost failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_fw_load.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_fw_load.sh index c8859ca98..ac8daadd2 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_fw_load.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_fw_load.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s fw_load fw_load - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc fw_load fw_load failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_kmsg01.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_kmsg01.sh index 264441d26..a8901ac4b 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_kmsg01.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_kmsg01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s kmsg01 kmsg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc kmsg01 kmsg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_lock_torture.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_lock_torture.sh index d3d19bf99..d693cf8b5 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_lock_torture.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_lock_torture.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s lock_torture lock_torture.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc lock_torture lock_torture.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_ltp_acpi.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_ltp_acpi.sh index f0c18f8a5..5842b7b42 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_ltp_acpi.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_ltp_acpi.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s ltp_acpi ltp_acpi - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc ltp_acpi ltp_acpi failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rcu_torture.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rcu_torture.sh index 4408d7ca2..77bfcb527 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rcu_torture.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rcu_torture.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s rcu_torture rcu_torture.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc rcu_torture rcu_torture.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc01.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc01.sh index ee07f4b76..4ec13a213 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc01.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s rtc01 rtc01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc rtc01 rtc01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc02.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc02.sh index 23f519a0f..165e4d96e 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc02.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s rtc02 rtc02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc rtc02 rtc02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tbio.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tbio.sh index f94a8f73b..e6d575040 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tbio.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tbio.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s tbio tbio - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc tbio tbio failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tpci.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tpci.sh index 12a2dca9a..4883d245b 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tpci.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tpci.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s tpci tpci - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc tpci tpci failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_uaccess.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_uaccess.sh index 437c5b815..aa215dde7 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_uaccess.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_uaccess.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s uaccess uaccess - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc uaccess uaccess failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_umip_basic_test.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_umip_basic_test.sh index f1a1f9763..d88bb11d7 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_umip_basic_test.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_umip_basic_test.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s umip_basic_test umip_basic_test - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc umip_basic_test umip_basic_test failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram01.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram01.sh index 62d828187..268ec6622 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram01.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s zram01 zram01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc zram01 zram01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram02.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram02.sh index f8931aeaa..3f9745dbc 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram02.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s zram02 zram02.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc zram02 zram02.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram03.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram03.sh index 87fcdade3..5ade0edc1 100644 --- a/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram03.sh +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f kernel_misc -s zram03 zram03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "kernel_misc zram03 zram03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_pagefault01.sh b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_pagefault01.sh new file mode 100644 index 000000000..8ddac2495 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_pagefault01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_kvm kvm_pagefault01 kvm_pagefault01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f kvm -s kvm_pagefault01 kvm_pagefault01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "kvm kvm_pagefault01 kvm_pagefault01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm01.sh b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm01.sh new file mode 100644 index 000000000..4d3ce8575 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_kvm kvm_svm01 kvm_svm01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f kvm -s kvm_svm01 kvm_svm01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "kvm kvm_svm01 kvm_svm01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm02.sh b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm02.sh new file mode 100644 index 000000000..a3a2a3181 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_kvm kvm_svm02 kvm_svm02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f kvm -s kvm_svm02 kvm_svm02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "kvm kvm_svm02 kvm_svm02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm03.sh b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm03.sh new file mode 100644 index 000000000..4dcd0d58a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_kvm kvm_svm03 kvm_svm03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f kvm -s kvm_svm03 kvm_svm03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "kvm kvm_svm03 kvm_svm03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm04.sh b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm04.sh new file mode 100644 index 000000000..dc4f87beb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kvm/oe_test_ltp_kvm_kvm_svm04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_kvm kvm_svm04 kvm_svm04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f kvm -s kvm_svm04 kvm_svm04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "kvm kvm_svm04 kvm_svm04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1000.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1000.sh new file mode 100644 index 000000000..3c2ed3249 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1000.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1000 aio-stress -o2 -r4k -f1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1000 aio-stress -o2 -r4k -f1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1000 aio-stress -o2 -r4k -f1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1001.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1001.sh new file mode 100644 index 000000000..db5659491 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1001 aio-stress -o2 -r8k -f1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1001 aio-stress -o2 -r8k -f1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1001 aio-stress -o2 -r8k -f1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1002.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1002.sh new file mode 100644 index 000000000..800ba3a19 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1002.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1002 aio-stress -o2 -r16k -f1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1002 aio-stress -o2 -r16k -f1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1002 aio-stress -o2 -r16k -f1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1003.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1003.sh new file mode 100644 index 000000000..eb392c75a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1003.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1003 aio-stress -o2 -r32k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1003 aio-stress -o2 -r32k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1003 aio-stress -o2 -r32k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1004.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1004.sh new file mode 100644 index 000000000..aa863272c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1004.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1004 aio-stress -o2 -r64k -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1004 aio-stress -o2 -r64k -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1004 aio-stress -o2 -r64k -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1005.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1005.sh new file mode 100644 index 000000000..008837ae6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1005.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1005 aio-stress -o3 -r4k -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1005 aio-stress -o3 -r4k -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1005 aio-stress -o3 -r4k -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1006.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1006.sh new file mode 100644 index 000000000..804ecf792 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1006.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1006 aio-stress -o3 -r8k -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1006 aio-stress -o3 -r8k -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1006 aio-stress -o3 -r8k -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1007.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1007.sh new file mode 100644 index 000000000..d00a24e25 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1007.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1007 aio-stress -o3 -r16k -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1007 aio-stress -o3 -r16k -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1007 aio-stress -o3 -r16k -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1008.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1008.sh new file mode 100644 index 000000000..c23b06535 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1008.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1008 aio-stress -o3 -r32k -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1008 aio-stress -o3 -r32k -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1008 aio-stress -o3 -r32k -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1009.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1009.sh new file mode 100644 index 000000000..ef73fc0c2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1009.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1009 aio-stress -o3 -r64k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1009 aio-stress -o3 -r64k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1009 aio-stress -o3 -r64k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1010.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1010.sh new file mode 100644 index 000000000..20e88f739 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1010.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1010 aio-stress -o3 -r128k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1010 aio-stress -o3 -r128k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1010 aio-stress -o3 -r128k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1011.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1011.sh new file mode 100644 index 000000000..57a5ebac1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1011.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1011 aio-stress -o3 -r256k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1011 aio-stress -o3 -r256k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1011 aio-stress -o3 -r256k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1012.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1012.sh new file mode 100644 index 000000000..2d9d2faa9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1012.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1012 aio-stress -o3 -r512k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1012 aio-stress -o3 -r512k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1012 aio-stress -o3 -r512k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1013.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1013.sh new file mode 100644 index 000000000..1ea62b4f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1013.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1013 aio-stress -o2 -O -r4k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1013 aio-stress -o2 -O -r4k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1013 aio-stress -o2 -O -r4k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1014.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1014.sh new file mode 100644 index 000000000..6a3087553 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1014.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1014 aio-stress -o2 -O -r8k -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1014 aio-stress -o2 -O -r8k -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1014 aio-stress -o2 -O -r8k -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1015.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1015.sh new file mode 100644 index 000000000..15c9a0925 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1015.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1015 aio-stress -o2 -O -r16k -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1015 aio-stress -o2 -O -r16k -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1015 aio-stress -o2 -O -r16k -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1016.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1016.sh new file mode 100644 index 000000000..d299d35ca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1016.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1016 aio-stress -o2 -O -r32k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1016 aio-stress -o2 -O -r32k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1016 aio-stress -o2 -O -r32k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1017.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1017.sh new file mode 100644 index 000000000..36b85a820 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1017.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1017 aio-stress -o2 -O -r64k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1017 aio-stress -o2 -O -r64k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1017 aio-stress -o2 -O -r64k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1018.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1018.sh new file mode 100644 index 000000000..fc8c93854 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1018.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1018 aio-stress -o3 -O -r4k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1018 aio-stress -o3 -O -r4k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1018 aio-stress -o3 -O -r4k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1019.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1019.sh new file mode 100644 index 000000000..2fdb50cf0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1019.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1019 aio-stress -o3 -O -r8k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1019 aio-stress -o3 -O -r8k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1019 aio-stress -o3 -O -r8k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1020.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1020.sh new file mode 100644 index 000000000..4723f9fa0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1020.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1020 aio-stress -o3 -O -r16k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1020 aio-stress -o3 -O -r16k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1020 aio-stress -o3 -O -r16k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1021.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1021.sh new file mode 100644 index 000000000..aa6130f29 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1021.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1021 aio-stress -o3 -O -r32k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1021 aio-stress -o3 -O -r32k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1021 aio-stress -o3 -O -r32k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1022.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1022.sh new file mode 100644 index 000000000..7bfeafb5e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1022.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1022 aio-stress -o3 -O -r64k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1022 aio-stress -o3 -O -r64k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1022 aio-stress -o3 -O -r64k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1023.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1023.sh new file mode 100644 index 000000000..afacdf245 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1023.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1023 aio-stress -o3 -O -r128k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1023 aio-stress -o3 -O -r128k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1023 aio-stress -o3 -O -r128k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1024.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1024.sh new file mode 100644 index 000000000..f04394e6f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1024.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1024 aio-stress -o3 -O -r256k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1024 aio-stress -o3 -O -r256k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1024 aio-stress -o3 -O -r256k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1025.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1025.sh new file mode 100644 index 000000000..63c230da3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1025.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1025 aio-stress -o3 -O -r512k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1025 aio-stress -o3 -O -r512k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1025 aio-stress -o3 -O -r512k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1026.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1026.sh new file mode 100644 index 000000000..2dc81dfce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1026.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1026 aio-stress -o0 -r4k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1026 aio-stress -o0 -r4k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1026 aio-stress -o0 -r4k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1027.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1027.sh new file mode 100644 index 000000000..327eb9ddb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1027.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1027 aio-stress -o0 -r8k -f1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1027 aio-stress -o0 -r8k -f1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1027 aio-stress -o0 -r8k -f1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1028.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1028.sh new file mode 100644 index 000000000..97d77de34 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1028.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1028 aio-stress -o0 -r16k -f1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1028 aio-stress -o0 -r16k -f1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1028 aio-stress -o0 -r16k -f1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1029.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1029.sh new file mode 100644 index 000000000..8be92f932 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1029.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1029 aio-stress -o0 -r32k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1029 aio-stress -o0 -r32k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1029 aio-stress -o0 -r32k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1030.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1030.sh new file mode 100644 index 000000000..41f725934 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1030.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1030 aio-stress -o0 -r64k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1030 aio-stress -o0 -r64k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1030 aio-stress -o0 -r64k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1031.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1031.sh new file mode 100644 index 000000000..0a1c825c6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1031.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1031 aio-stress -o1 -r4k -t2 -f1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1031 aio-stress -o1 -r4k -t2 -f1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1031 aio-stress -o1 -r4k -t2 -f1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1032.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1032.sh new file mode 100644 index 000000000..f01aced20 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1032.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1032 aio-stress -o1 -r8k -t2 -f1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1032 aio-stress -o1 -r8k -t2 -f1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1032 aio-stress -o1 -r8k -t2 -f1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1033.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1033.sh new file mode 100644 index 000000000..4af3b69ee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1033.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1033 aio-stress -o1 -r16k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1033 aio-stress -o1 -r16k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1033 aio-stress -o1 -r16k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1034.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1034.sh new file mode 100644 index 000000000..e3dc88ca3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1034.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1034 aio-stress -o1 -r32k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1034 aio-stress -o1 -r32k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1034 aio-stress -o1 -r32k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1035.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1035.sh new file mode 100644 index 000000000..8f4ba1950 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1035.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1035 aio-stress -o1 -r64k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1035 aio-stress -o1 -r64k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1035 aio-stress -o1 -r64k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1036.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1036.sh new file mode 100644 index 000000000..f37bfa9e2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1036.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1036 aio-stress -o1 -r128k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1036 aio-stress -o1 -r128k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1036 aio-stress -o1 -r128k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1037.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1037.sh new file mode 100644 index 000000000..7aef8f1ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1037.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1037 aio-stress -o1 -r256k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1037 aio-stress -o1 -r256k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1037 aio-stress -o1 -r256k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1038.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1038.sh new file mode 100644 index 000000000..0a966ddc9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1038.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1038 aio-stress -o1 -r512k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1038 aio-stress -o1 -r512k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1038 aio-stress -o1 -r512k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1039.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1039.sh new file mode 100644 index 000000000..b27454657 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1039.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1039 aio-stress -o1 -O -r4k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1039 aio-stress -o1 -O -r4k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1039 aio-stress -o1 -O -r4k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1040.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1040.sh new file mode 100644 index 000000000..c8eaf68cc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1040.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1040 aio-stress -o1 -O -r8k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1040 aio-stress -o1 -O -r8k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1040 aio-stress -o1 -O -r8k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1041.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1041.sh new file mode 100644 index 000000000..b58e97bfb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1041.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1041 aio-stress -o1 -O -r16k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1041 aio-stress -o1 -O -r16k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1041 aio-stress -o1 -O -r16k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1042.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1042.sh new file mode 100644 index 000000000..7a920ba15 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1042.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1042 aio-stress -o1 -O -r32k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1042 aio-stress -o1 -O -r32k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1042 aio-stress -o1 -O -r32k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1043.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1043.sh new file mode 100644 index 000000000..72b794ea2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1043.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1043 aio-stress -o1 -O -r64k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1043 aio-stress -o1 -O -r64k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1043 aio-stress -o1 -O -r64k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1044.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1044.sh new file mode 100644 index 000000000..24b434fcc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1044.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1044 aio-stress -o1 -O -r4k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1044 aio-stress -o1 -O -r4k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1044 aio-stress -o1 -O -r4k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1045.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1045.sh new file mode 100644 index 000000000..00a43a188 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1045.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1045 aio-stress -o1 -O -r8k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1045 aio-stress -o1 -O -r8k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1045 aio-stress -o1 -O -r8k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1046.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1046.sh new file mode 100644 index 000000000..765269c53 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1046.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1046 aio-stress -o1 -O -r16k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1046 aio-stress -o1 -O -r16k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1046 aio-stress -o1 -O -r16k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1047.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1047.sh new file mode 100644 index 000000000..195fd7dcb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1047.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1047 aio-stress -o1 -O -r32k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1047 aio-stress -o1 -O -r32k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1047 aio-stress -o1 -O -r32k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1048.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1048.sh new file mode 100644 index 000000000..c04fc6ece --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1048.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1048 aio-stress -o1 -O -r64k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1048 aio-stress -o1 -O -r64k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1048 aio-stress -o1 -O -r64k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1049.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1049.sh new file mode 100644 index 000000000..71c8f94f6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1049.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1049 aio-stress -o1 -O -r128k -t8 -f8 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1049 aio-stress -o1 -O -r128k -t8 -f8 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1049 aio-stress -o1 -O -r128k -t8 -f8 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1050.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1050.sh new file mode 100644 index 000000000..1ad34dda4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1050.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1050 aio-stress -o1 -O -r256k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1050 aio-stress -o1 -O -r256k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1050 aio-stress -o1 -O -r256k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1051.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1051.sh new file mode 100644 index 000000000..c1ccdbde2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1051.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1051 aio-stress -o3 -r8k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1051 aio-stress -o3 -r8k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1051 aio-stress -o3 -r8k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1052.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1052.sh new file mode 100644 index 000000000..d28190926 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1052.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1052 aio-stress -o3 -r16k -t2 -f2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1052 aio-stress -o3 -r16k -t2 -f2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1052 aio-stress -o3 -r16k -t2 -f2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1053.sh b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1053.sh new file mode 100644 index 000000000..f7740d338 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aio-stress/oe_test_ltp_ltp-aio-stress_ADS1053.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aio-stress ADS1053 aio-stress -o3 -r32k -t4 -f4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aio-stress -s ADS1053 aio-stress -o3 -r32k -t4 -f4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aio-stress ADS1053 aio-stress -o3 -r32k -t4 -f4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD001.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD001.sh new file mode 100644 index 000000000..8bfc69f4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD001 aiocp -b 1k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD001 aiocp -b 1k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD001 aiocp -b 1k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD002.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD002.sh new file mode 100644 index 000000000..dc74154c6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD002.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD002 aiocp -b 1k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD002 aiocp -b 1k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD002 aiocp -b 1k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD003.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD003.sh new file mode 100644 index 000000000..5d813c398 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD003.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD003 aiocp -b 1k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD003 aiocp -b 1k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD003 aiocp -b 1k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD004.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD004.sh new file mode 100644 index 000000000..4f3c2a5c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD004.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD004 aiocp -b 1k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD004 aiocp -b 1k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD004 aiocp -b 1k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD005.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD005.sh new file mode 100644 index 000000000..0bde70ae9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD005.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD005 aiocp -b 1k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD005 aiocp -b 1k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD005 aiocp -b 1k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD006.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD006.sh new file mode 100644 index 000000000..d9fa29259 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD006.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD006 aiocp -b 1k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD006 aiocp -b 1k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD006 aiocp -b 1k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD007.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD007.sh new file mode 100644 index 000000000..9e8903609 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD007.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD007 aiocp -b 1k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD007 aiocp -b 1k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD007 aiocp -b 1k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD008.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD008.sh new file mode 100644 index 000000000..40c418a76 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD008.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD008 aiocp -b 1k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD008 aiocp -b 1k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD008 aiocp -b 1k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD009.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD009.sh new file mode 100644 index 000000000..baf3735ab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD009.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD009 aiocp -b 1k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD009 aiocp -b 1k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD009 aiocp -b 1k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD010.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD010.sh new file mode 100644 index 000000000..839afb522 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD010.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD010 aiocp -b 1k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD010 aiocp -b 1k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD010 aiocp -b 1k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD011.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD011.sh new file mode 100644 index 000000000..afdad64e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD011.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD011 aiocp -b 1k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD011 aiocp -b 1k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD011 aiocp -b 1k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD012.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD012.sh new file mode 100644 index 000000000..35638b8e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD012.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD012 aiocp -b 1k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD012 aiocp -b 1k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD012 aiocp -b 1k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD013.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD013.sh new file mode 100644 index 000000000..05138f7e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD013.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD013 aiocp -b 1k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD013 aiocp -b 1k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD013 aiocp -b 1k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD014.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD014.sh new file mode 100644 index 000000000..181a3202c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD014.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD014 aiocp -b 1k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD014 aiocp -b 1k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD014 aiocp -b 1k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD015.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD015.sh new file mode 100644 index 000000000..9fb8934f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD015.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD015 aiocp -b 2k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD015 aiocp -b 2k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD015 aiocp -b 2k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD016.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD016.sh new file mode 100644 index 000000000..8208dd695 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD016.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD016 aiocp -b 2k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD016 aiocp -b 2k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD016 aiocp -b 2k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD017.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD017.sh new file mode 100644 index 000000000..aff0636de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD017.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD017 aiocp -b 2k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD017 aiocp -b 2k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD017 aiocp -b 2k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD018.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD018.sh new file mode 100644 index 000000000..675e8ce51 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD018.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD018 aiocp -b 2k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD018 aiocp -b 2k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD018 aiocp -b 2k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD019.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD019.sh new file mode 100644 index 000000000..fb3bbf801 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD019.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD019 aiocp -b 2k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD019 aiocp -b 2k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD019 aiocp -b 2k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD020.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD020.sh new file mode 100644 index 000000000..4261b23b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD020.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD020 aiocp -b 2k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD020 aiocp -b 2k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD020 aiocp -b 2k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD021.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD021.sh new file mode 100644 index 000000000..1c3595fe3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD021.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD021 aiocp -b 2k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD021 aiocp -b 2k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD021 aiocp -b 2k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD022.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD022.sh new file mode 100644 index 000000000..f53bee098 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD022.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD022 aiocp -b 2k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD022 aiocp -b 2k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD022 aiocp -b 2k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD023.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD023.sh new file mode 100644 index 000000000..cb4f2373c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD023.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD023 aiocp -b 2k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD023 aiocp -b 2k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD023 aiocp -b 2k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD024.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD024.sh new file mode 100644 index 000000000..59327042f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD024.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD024 aiocp -b 2k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD024 aiocp -b 2k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD024 aiocp -b 2k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD025.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD025.sh new file mode 100644 index 000000000..cb7954c62 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD025.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD025 aiocp -b 2k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD025 aiocp -b 2k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD025 aiocp -b 2k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD026.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD026.sh new file mode 100644 index 000000000..e40c3168a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD026.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD026 aiocp -b 2k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD026 aiocp -b 2k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD026 aiocp -b 2k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD027.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD027.sh new file mode 100644 index 000000000..6ed8165d2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD027.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD027 aiocp -b 2k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD027 aiocp -b 2k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD027 aiocp -b 2k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD028.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD028.sh new file mode 100644 index 000000000..07875047e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD028.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD028 aiocp -b 2k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD028 aiocp -b 2k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD028 aiocp -b 2k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD029.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD029.sh new file mode 100644 index 000000000..f6303e6dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD029.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD029 aiocp -b 4k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD029 aiocp -b 4k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD029 aiocp -b 4k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD030.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD030.sh new file mode 100644 index 000000000..c38b4c795 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD030.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD030 aiocp -b 4k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD030 aiocp -b 4k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD030 aiocp -b 4k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD031.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD031.sh new file mode 100644 index 000000000..304d47cea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD031.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD031 aiocp -b 4k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD031 aiocp -b 4k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD031 aiocp -b 4k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD032.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD032.sh new file mode 100644 index 000000000..f13baf579 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD032.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD032 aiocp -b 4k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD032 aiocp -b 4k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD032 aiocp -b 4k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD033.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD033.sh new file mode 100644 index 000000000..8e3f8c189 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD033.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD033 aiocp -b 4k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD033 aiocp -b 4k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD033 aiocp -b 4k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD034.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD034.sh new file mode 100644 index 000000000..a8525a6f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD034.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD034 aiocp -b 4k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD034 aiocp -b 4k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD034 aiocp -b 4k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD035.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD035.sh new file mode 100644 index 000000000..3153e1dbf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD035.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD035 aiocp -b 4k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD035 aiocp -b 4k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD035 aiocp -b 4k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD036.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD036.sh new file mode 100644 index 000000000..6b404d2d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD036.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD036 aiocp -b 4k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD036 aiocp -b 4k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD036 aiocp -b 4k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD037.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD037.sh new file mode 100644 index 000000000..cc9534585 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD037.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD037 aiocp -b 4k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD037 aiocp -b 4k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD037 aiocp -b 4k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD038.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD038.sh new file mode 100644 index 000000000..d77877ee7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD038.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD038 aiocp -b 4k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD038 aiocp -b 4k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD038 aiocp -b 4k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD039.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD039.sh new file mode 100644 index 000000000..360f59c8a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD039.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD039 aiocp -b 4k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD039 aiocp -b 4k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD039 aiocp -b 4k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD040.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD040.sh new file mode 100644 index 000000000..2d94b934a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD040.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD040 aiocp -b 4k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD040 aiocp -b 4k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD040 aiocp -b 4k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD041.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD041.sh new file mode 100644 index 000000000..340ead7c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD041.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD041 aiocp -b 4k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD041 aiocp -b 4k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD041 aiocp -b 4k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD042.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD042.sh new file mode 100644 index 000000000..10ffc6fae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD042.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD042 aiocp -b 4k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD042 aiocp -b 4k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD042 aiocp -b 4k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD043.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD043.sh new file mode 100644 index 000000000..24146f64a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD043.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD043 aiocp -b 8k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD043 aiocp -b 8k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD043 aiocp -b 8k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD044.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD044.sh new file mode 100644 index 000000000..8ee7da639 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD044.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD044 aiocp -b 8k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD044 aiocp -b 8k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD044 aiocp -b 8k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD045.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD045.sh new file mode 100644 index 000000000..767af7dce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD045.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD045 aiocp -b 8k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD045 aiocp -b 8k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD045 aiocp -b 8k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD046.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD046.sh new file mode 100644 index 000000000..6067ba952 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD046.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD046 aiocp -b 8k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD046 aiocp -b 8k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD046 aiocp -b 8k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD047.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD047.sh new file mode 100644 index 000000000..de084d3a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD047.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD047 aiocp -b 8k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD047 aiocp -b 8k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD047 aiocp -b 8k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD048.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD048.sh new file mode 100644 index 000000000..04260d98a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD048.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD048 aiocp -b 8k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD048 aiocp -b 8k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD048 aiocp -b 8k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD049.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD049.sh new file mode 100644 index 000000000..59c64f19c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD049.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD049 aiocp -b 8k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD049 aiocp -b 8k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD049 aiocp -b 8k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD050.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD050.sh new file mode 100644 index 000000000..aba2e0c56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD050.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD050 aiocp -b 8k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD050 aiocp -b 8k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD050 aiocp -b 8k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD051.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD051.sh new file mode 100644 index 000000000..ed89eada6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD051.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD051 aiocp -b 8k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD051 aiocp -b 8k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD051 aiocp -b 8k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD052.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD052.sh new file mode 100644 index 000000000..7f5239888 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD052.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD052 aiocp -b 8k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD052 aiocp -b 8k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD052 aiocp -b 8k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD053.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD053.sh new file mode 100644 index 000000000..6eccb6968 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD053.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD053 aiocp -b 8k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD053 aiocp -b 8k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD053 aiocp -b 8k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD054.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD054.sh new file mode 100644 index 000000000..ecfaf858d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD054.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD054 aiocp -b 8k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD054 aiocp -b 8k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD054 aiocp -b 8k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD055.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD055.sh new file mode 100644 index 000000000..68e88e600 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD055.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD055 aiocp -b 8k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD055 aiocp -b 8k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD055 aiocp -b 8k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD056.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD056.sh new file mode 100644 index 000000000..cb5b27fa7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD056.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD056 aiocp -b 8k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD056 aiocp -b 8k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD056 aiocp -b 8k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD057.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD057.sh new file mode 100644 index 000000000..23627f7d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD057.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD057 aiocp -b 16k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD057 aiocp -b 16k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD057 aiocp -b 16k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD058.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD058.sh new file mode 100644 index 000000000..7ddc6ed18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD058.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD058 aiocp -b 16k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD058 aiocp -b 16k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD058 aiocp -b 16k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD059.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD059.sh new file mode 100644 index 000000000..57ecf2033 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD059.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD059 aiocp -b 16k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD059 aiocp -b 16k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD059 aiocp -b 16k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD060.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD060.sh new file mode 100644 index 000000000..df906afd7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD060.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD060 aiocp -b 16k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD060 aiocp -b 16k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD060 aiocp -b 16k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD061.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD061.sh new file mode 100644 index 000000000..1b877bb2e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD061.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD061 aiocp -b 16k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD061 aiocp -b 16k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD061 aiocp -b 16k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD062.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD062.sh new file mode 100644 index 000000000..c71fbd0d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD062.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD062 aiocp -b 16k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD062 aiocp -b 16k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD062 aiocp -b 16k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD063.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD063.sh new file mode 100644 index 000000000..0b0abfbef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD063.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD063 aiocp -b 16k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD063 aiocp -b 16k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD063 aiocp -b 16k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD064.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD064.sh new file mode 100644 index 000000000..e1d4c1a50 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD064.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD064 aiocp -b 16k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD064 aiocp -b 16k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD064 aiocp -b 16k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD065.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD065.sh new file mode 100644 index 000000000..bcb6aca5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD065.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD065 aiocp -b 16k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD065 aiocp -b 16k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD065 aiocp -b 16k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD066.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD066.sh new file mode 100644 index 000000000..36fa9cff2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD066.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD066 aiocp -b 16k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD066 aiocp -b 16k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD066 aiocp -b 16k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD067.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD067.sh new file mode 100644 index 000000000..df6ecfc8c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD067.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD067 aiocp -b 16k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD067 aiocp -b 16k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD067 aiocp -b 16k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD068.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD068.sh new file mode 100644 index 000000000..466ba651b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD068.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD068 aiocp -b 16k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD068 aiocp -b 16k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD068 aiocp -b 16k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD069.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD069.sh new file mode 100644 index 000000000..686099ad2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD069.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD069 aiocp -b 16k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD069 aiocp -b 16k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD069 aiocp -b 16k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD070.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD070.sh new file mode 100644 index 000000000..f7e717ae1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD070.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD070 aiocp -b 16k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD070 aiocp -b 16k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD070 aiocp -b 16k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD071.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD071.sh new file mode 100644 index 000000000..b3731ecc6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD071.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD071 aiocp -b 32k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD071 aiocp -b 32k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD071 aiocp -b 32k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD072.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD072.sh new file mode 100644 index 000000000..e612540bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD072.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD072 aiocp -b 32k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD072 aiocp -b 32k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD072 aiocp -b 32k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD073.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD073.sh new file mode 100644 index 000000000..d2c90e90f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD073.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD073 aiocp -b 32k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD073 aiocp -b 32k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD073 aiocp -b 32k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD074.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD074.sh new file mode 100644 index 000000000..89442ac56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD074.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD074 aiocp -b 32k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD074 aiocp -b 32k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD074 aiocp -b 32k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD075.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD075.sh new file mode 100644 index 000000000..3c32ef7f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD075.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD075 aiocp -b 32k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD075 aiocp -b 32k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD075 aiocp -b 32k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD076.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD076.sh new file mode 100644 index 000000000..3f0119413 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD076.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD076 aiocp -b 32k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD076 aiocp -b 32k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD076 aiocp -b 32k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD077.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD077.sh new file mode 100644 index 000000000..e7463e342 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD077.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD077 aiocp -b 32k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD077 aiocp -b 32k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD077 aiocp -b 32k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD078.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD078.sh new file mode 100644 index 000000000..4d532536e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD078.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD078 aiocp -b 32k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD078 aiocp -b 32k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD078 aiocp -b 32k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD079.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD079.sh new file mode 100644 index 000000000..c0e725786 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD079.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD079 aiocp -b 32k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD079 aiocp -b 32k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD079 aiocp -b 32k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD080.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD080.sh new file mode 100644 index 000000000..fa5dc4304 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD080.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD080 aiocp -b 32k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD080 aiocp -b 32k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD080 aiocp -b 32k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD081.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD081.sh new file mode 100644 index 000000000..bdbb6595d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD081.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD081 aiocp -b 32k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD081 aiocp -b 32k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD081 aiocp -b 32k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD082.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD082.sh new file mode 100644 index 000000000..e7daca94b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD082.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD082 aiocp -b 32k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD082 aiocp -b 32k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD082 aiocp -b 32k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD083.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD083.sh new file mode 100644 index 000000000..9512fc432 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD083.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD083 aiocp -b 32k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD083 aiocp -b 32k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD083 aiocp -b 32k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD084.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD084.sh new file mode 100644 index 000000000..b3791ed9b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD084.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD084 aiocp -b 32k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD084 aiocp -b 32k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD084 aiocp -b 32k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD085.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD085.sh new file mode 100644 index 000000000..9eca94651 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD085.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD085 aiocp -b 64k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD085 aiocp -b 64k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD085 aiocp -b 64k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD086.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD086.sh new file mode 100644 index 000000000..b783a1a7d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD086.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD086 aiocp -b 64k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD086 aiocp -b 64k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD086 aiocp -b 64k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD087.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD087.sh new file mode 100644 index 000000000..e3bb9b04a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD087.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD087 aiocp -b 64k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD087 aiocp -b 64k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD087 aiocp -b 64k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD088.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD088.sh new file mode 100644 index 000000000..050bf6ff6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD088.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD088 aiocp -b 64k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD088 aiocp -b 64k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD088 aiocp -b 64k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD089.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD089.sh new file mode 100644 index 000000000..440c175e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD089.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD089 aiocp -b 64k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD089 aiocp -b 64k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD089 aiocp -b 64k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD090.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD090.sh new file mode 100644 index 000000000..f14ef372c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD090.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD090 aiocp -b 64k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD090 aiocp -b 64k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD090 aiocp -b 64k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD091.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD091.sh new file mode 100644 index 000000000..15a4e9e73 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD091.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD091 aiocp -b 64k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD091 aiocp -b 64k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD091 aiocp -b 64k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD092.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD092.sh new file mode 100644 index 000000000..de5fbcec9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD092.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD092 aiocp -b 64k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD092 aiocp -b 64k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD092 aiocp -b 64k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD093.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD093.sh new file mode 100644 index 000000000..b9ad82710 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD093.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD093 aiocp -b 64k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD093 aiocp -b 64k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD093 aiocp -b 64k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD094.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD094.sh new file mode 100644 index 000000000..84e51e392 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD094.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD094 aiocp -b 64k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD094 aiocp -b 64k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD094 aiocp -b 64k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD095.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD095.sh new file mode 100644 index 000000000..2a6a30294 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD095.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD095 aiocp -b 64k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD095 aiocp -b 64k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD095 aiocp -b 64k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD096.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD096.sh new file mode 100644 index 000000000..7edee9fea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD096.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD096 aiocp -b 64k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD096 aiocp -b 64k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD096 aiocp -b 64k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD097.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD097.sh new file mode 100644 index 000000000..e2171c026 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD097.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD097 aiocp -b 64k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD097 aiocp -b 64k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD097 aiocp -b 64k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD098.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD098.sh new file mode 100644 index 000000000..d748ce5bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD098.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD098 aiocp -b 64k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD098 aiocp -b 64k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD098 aiocp -b 64k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD099.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD099.sh new file mode 100644 index 000000000..db021eb76 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD099.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD099 aiocp -b 128k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD099 aiocp -b 128k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD099 aiocp -b 128k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD100.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD100.sh new file mode 100644 index 000000000..d9e07040d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD100 aiocp -b 128k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD100 aiocp -b 128k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD100 aiocp -b 128k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD101.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD101.sh new file mode 100644 index 000000000..8cde6c9b8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD101.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD101 aiocp -b 128k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD101 aiocp -b 128k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD101 aiocp -b 128k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD102.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD102.sh new file mode 100644 index 000000000..d73186ece --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD102.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD102 aiocp -b 128k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD102 aiocp -b 128k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD102 aiocp -b 128k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD103.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD103.sh new file mode 100644 index 000000000..ece780bd3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD103.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD103 aiocp -b 128k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD103 aiocp -b 128k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD103 aiocp -b 128k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD104.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD104.sh new file mode 100644 index 000000000..cf2a334ca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD104.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD104 aiocp -b 128k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD104 aiocp -b 128k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD104 aiocp -b 128k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD105.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD105.sh new file mode 100644 index 000000000..310947282 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD105.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD105 aiocp -b 128k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD105 aiocp -b 128k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD105 aiocp -b 128k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD106.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD106.sh new file mode 100644 index 000000000..37a1dd9e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD106.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD106 aiocp -b 128k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD106 aiocp -b 128k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD106 aiocp -b 128k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD107.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD107.sh new file mode 100644 index 000000000..e2e1f71ff --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD107.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD107 aiocp -b 128k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD107 aiocp -b 128k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD107 aiocp -b 128k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD108.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD108.sh new file mode 100644 index 000000000..503f8f4ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD108.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD108 aiocp -b 128k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD108 aiocp -b 128k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD108 aiocp -b 128k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD109.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD109.sh new file mode 100644 index 000000000..fb3bdabb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD109.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD109 aiocp -b 128k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD109 aiocp -b 128k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD109 aiocp -b 128k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD110.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD110.sh new file mode 100644 index 000000000..b87a4610d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD110.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD110 aiocp -b 128k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD110 aiocp -b 128k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD110 aiocp -b 128k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD111.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD111.sh new file mode 100644 index 000000000..09e4d9e5d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD111.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD111 aiocp -b 128k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD111 aiocp -b 128k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD111 aiocp -b 128k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD112.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD112.sh new file mode 100644 index 000000000..83ea410f6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD112.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD112 aiocp -b 128k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD112 aiocp -b 128k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD112 aiocp -b 128k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD113.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD113.sh new file mode 100644 index 000000000..1f6881ab2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD113.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD113 aiocp -b 256k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD113 aiocp -b 256k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD113 aiocp -b 256k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD114.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD114.sh new file mode 100644 index 000000000..a7efc4cd9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD114.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD114 aiocp -b 256k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD114 aiocp -b 256k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD114 aiocp -b 256k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD115.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD115.sh new file mode 100644 index 000000000..63023f295 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD115.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD115 aiocp -b 256k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD115 aiocp -b 256k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD115 aiocp -b 256k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD116.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD116.sh new file mode 100644 index 000000000..64c93b99f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD116.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD116 aiocp -b 256k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD116 aiocp -b 256k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD116 aiocp -b 256k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD117.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD117.sh new file mode 100644 index 000000000..da22d6c42 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD117.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD117 aiocp -b 256k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD117 aiocp -b 256k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD117 aiocp -b 256k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD118.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD118.sh new file mode 100644 index 000000000..a83080626 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD118.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD118 aiocp -b 256k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD118 aiocp -b 256k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD118 aiocp -b 256k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD119.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD119.sh new file mode 100644 index 000000000..7ee317740 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD119.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD119 aiocp -b 256k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD119 aiocp -b 256k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD119 aiocp -b 256k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD120.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD120.sh new file mode 100644 index 000000000..fe9682b77 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD120.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD120 aiocp -b 256k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD120 aiocp -b 256k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD120 aiocp -b 256k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD121.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD121.sh new file mode 100644 index 000000000..44d364ee9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD121.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD121 aiocp -b 256k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD121 aiocp -b 256k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD121 aiocp -b 256k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD122.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD122.sh new file mode 100644 index 000000000..eec36a3d9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD122.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD122 aiocp -b 256k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD122 aiocp -b 256k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD122 aiocp -b 256k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD123.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD123.sh new file mode 100644 index 000000000..1bde81592 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD123.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD123 aiocp -b 256k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD123 aiocp -b 256k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD123 aiocp -b 256k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD124.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD124.sh new file mode 100644 index 000000000..b54bf3788 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD124.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD124 aiocp -b 256k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD124 aiocp -b 256k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD124 aiocp -b 256k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD125.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD125.sh new file mode 100644 index 000000000..3d5deb1a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD125.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD125 aiocp -b 256k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD125 aiocp -b 256k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD125 aiocp -b 256k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD126.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD126.sh new file mode 100644 index 000000000..94f56418f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD126.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD126 aiocp -b 256k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD126 aiocp -b 256k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD126 aiocp -b 256k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD127.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD127.sh new file mode 100644 index 000000000..613e5ec73 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD127.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD127 aiocp -b 512k -n 1 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD127 aiocp -b 512k -n 1 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD127 aiocp -b 512k -n 1 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD128.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD128.sh new file mode 100644 index 000000000..0aade8af6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD128.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD128 aiocp -b 512k -n 1 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD128 aiocp -b 512k -n 1 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD128 aiocp -b 512k -n 1 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD129.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD129.sh new file mode 100644 index 000000000..f5bbadc3b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD129.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD129 aiocp -b 512k -n 2 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD129 aiocp -b 512k -n 2 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD129 aiocp -b 512k -n 2 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD130.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD130.sh new file mode 100644 index 000000000..d0278e54d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD130.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD130 aiocp -b 512k -n 2 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD130 aiocp -b 512k -n 2 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD130 aiocp -b 512k -n 2 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD131.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD131.sh new file mode 100644 index 000000000..c44ccdcaa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD131.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD131 aiocp -b 512k -n 4 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD131 aiocp -b 512k -n 4 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD131 aiocp -b 512k -n 4 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD132.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD132.sh new file mode 100644 index 000000000..f964831c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD132.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD132 aiocp -b 512k -n 4 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD132 aiocp -b 512k -n 4 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD132 aiocp -b 512k -n 4 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD133.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD133.sh new file mode 100644 index 000000000..c917183fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD133.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD133 aiocp -b 512k -n 8 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD133 aiocp -b 512k -n 8 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD133 aiocp -b 512k -n 8 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD134.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD134.sh new file mode 100644 index 000000000..f99bc27d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD134.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD134 aiocp -b 512k -n 8 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD134 aiocp -b 512k -n 8 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD134 aiocp -b 512k -n 8 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD135.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD135.sh new file mode 100644 index 000000000..28f211132 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD135.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD135 aiocp -b 512k -n 16 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD135 aiocp -b 512k -n 16 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD135 aiocp -b 512k -n 16 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD136.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD136.sh new file mode 100644 index 000000000..9e92cc341 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD136.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD136 aiocp -b 512k -n 16 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD136 aiocp -b 512k -n 16 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD136 aiocp -b 512k -n 16 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD137.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD137.sh new file mode 100644 index 000000000..5cb04bead --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD137.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD137 aiocp -b 512k -n 32 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD137 aiocp -b 512k -n 32 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD137 aiocp -b 512k -n 32 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD138.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD138.sh new file mode 100644 index 000000000..be5fbbea2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD138.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD138 aiocp -b 512k -n 32 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD138 aiocp -b 512k -n 32 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD138 aiocp -b 512k -n 32 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD139.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD139.sh new file mode 100644 index 000000000..200be4aac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD139.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD139 aiocp -b 512k -n 64 -f DIRECT +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD139 aiocp -b 512k -n 64 -f DIRECT + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD139 aiocp -b 512k -n 64 -f DIRECT failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD140.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD140.sh new file mode 100644 index 000000000..f2ff37658 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part1/oe_test_ltp_ltp-aiodio_part1_AD140.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part1 AD140 aiocp -b 512k -n 64 -f SYNC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part1 -s AD140 aiocp -b 512k -n 64 -f SYNC + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part1 AD140 aiocp -b 512k -n 64 -f SYNC failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP000.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP000.sh new file mode 100644 index 000000000..2705119b1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP000.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP000 aiodio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP000 aiodio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP000 aiodio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP001.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP001.sh new file mode 100644 index 000000000..3c3d2ad86 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP001 aiodio_sparse -s 180k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP001 aiodio_sparse -s 180k + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP001 aiodio_sparse -s 180k failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP002.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP002.sh new file mode 100644 index 000000000..469712a38 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP002.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP002 aiodio_sparse -s 1751k -w 11k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP002 aiodio_sparse -s 1751k -w 11k + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP002 aiodio_sparse -s 1751k -w 11k failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP003.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP003.sh new file mode 100644 index 000000000..ec90d91cc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP003.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP003 aiodio_sparse -o 9 -s 180k -w 18k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP003 aiodio_sparse -o 9 -s 180k -w 18k + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP003 aiodio_sparse -o 9 -s 180k -w 18k failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP004.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP004.sh new file mode 100644 index 000000000..1d2ef4f18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP004.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP004 aiodio_sparse -o 2 -w 2k -s 4k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP004 aiodio_sparse -o 2 -w 2k -s 4k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP004 aiodio_sparse -o 2 -w 2k -s 4k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP005.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP005.sh new file mode 100644 index 000000000..7f220c0f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP005.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP005 aiodio_sparse -o 2 -w 4k -s 8k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP005 aiodio_sparse -o 2 -w 4k -s 8k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP005 aiodio_sparse -o 2 -w 4k -s 8k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP006.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP006.sh new file mode 100644 index 000000000..7bf261182 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP006.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP006 aiodio_sparse -o 4 -w 8k -s 32k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP006 aiodio_sparse -o 4 -w 8k -s 32k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP006 aiodio_sparse -o 4 -w 8k -s 32k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP007.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP007.sh new file mode 100644 index 000000000..d6217a79e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP007.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP007 aiodio_sparse -o 4 -w 16k -s 64k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP007 aiodio_sparse -o 4 -w 16k -s 64k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP007 aiodio_sparse -o 4 -w 16k -s 64k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP008.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP008.sh new file mode 100644 index 000000000..438699875 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP008.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP008 aiodio_sparse -o 4 -w 32k -s 128k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP008 aiodio_sparse -o 4 -w 32k -s 128k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP008 aiodio_sparse -o 4 -w 32k -s 128k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP009.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP009.sh new file mode 100644 index 000000000..acd02f26d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP009.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP009 aiodio_sparse -o 4 -w 64k -s 256k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP009 aiodio_sparse -o 4 -w 64k -s 256k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP009 aiodio_sparse -o 4 -w 64k -s 256k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP010.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP010.sh new file mode 100644 index 000000000..8d4cbeb54 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP010.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP010 aiodio_sparse -o 4 -w 128k -s 512k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP010 aiodio_sparse -o 4 -w 128k -s 512k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP010 aiodio_sparse -o 4 -w 128k -s 512k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP011.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP011.sh new file mode 100644 index 000000000..3487ad877 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP011.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP011 aiodio_sparse -o 4 -w 256k -s 1024k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP011 aiodio_sparse -o 4 -w 256k -s 1024k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP011 aiodio_sparse -o 4 -w 256k -s 1024k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP012.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP012.sh new file mode 100644 index 000000000..d69c495e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP012.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP012 aiodio_sparse -o 4 -w 512k -s 2048k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP012 aiodio_sparse -o 4 -w 512k -s 2048k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP012 aiodio_sparse -o 4 -w 512k -s 2048k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP013.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP013.sh new file mode 100644 index 000000000..8a6f10491 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP013.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP013 aiodio_sparse -o 4 -w 1024k -s 4096k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP013 aiodio_sparse -o 4 -w 1024k -s 4096k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP013 aiodio_sparse -o 4 -w 1024k -s 4096k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP014.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP014.sh new file mode 100644 index 000000000..8866cb7cc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP014.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP014 aiodio_sparse -o 4 -w 2048k -s 8192k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP014 aiodio_sparse -o 4 -w 2048k -s 8192k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP014 aiodio_sparse -o 4 -w 2048k -s 8192k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP015.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP015.sh new file mode 100644 index 000000000..71ab65a4c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP015.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP015 aiodio_sparse -o 4 -w 4096k -s 16384k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP015 aiodio_sparse -o 4 -w 4096k -s 16384k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP015 aiodio_sparse -o 4 -w 4096k -s 16384k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP016.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP016.sh new file mode 100644 index 000000000..82eb83e9d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP016.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP016 aiodio_sparse -o 4 -w 8192k -s 32768k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP016 aiodio_sparse -o 4 -w 8192k -s 32768k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP016 aiodio_sparse -o 4 -w 8192k -s 32768k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP017.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP017.sh new file mode 100644 index 000000000..6ed4569ff --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP017.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP017 aiodio_sparse -o 4 -w 16384k -s 65536k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP017 aiodio_sparse -o 4 -w 16384k -s 65536k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP017 aiodio_sparse -o 4 -w 16384k -s 65536k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP018.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP018.sh new file mode 100644 index 000000000..915880663 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP018.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP018 aiodio_sparse -o 4 -w 16384k -s 65536k -n 4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP018 aiodio_sparse -o 4 -w 16384k -s 65536k -n 4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP018 aiodio_sparse -o 4 -w 16384k -s 65536k -n 4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP019.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP019.sh new file mode 100644 index 000000000..6939b55b1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP019.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP019 aiodio_sparse -o 4 -w 16384k -s 65536k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP019 aiodio_sparse -o 4 -w 16384k -s 65536k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP019 aiodio_sparse -o 4 -w 16384k -s 65536k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP020.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP020.sh new file mode 100644 index 000000000..a11bb65e9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP020.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP020 aiodio_sparse -o 4 -w 128k -s 512k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP020 aiodio_sparse -o 4 -w 128k -s 512k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP020 aiodio_sparse -o 4 -w 128k -s 512k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP021.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP021.sh new file mode 100644 index 000000000..87252c458 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP021.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP021 aiodio_sparse -o 4 -w 256k -s 1024k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP021 aiodio_sparse -o 4 -w 256k -s 1024k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP021 aiodio_sparse -o 4 -w 256k -s 1024k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP022.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP022.sh new file mode 100644 index 000000000..58b7d1c61 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP022.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP022 aiodio_sparse -o 4 -w 512k -s 2048k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP022 aiodio_sparse -o 4 -w 512k -s 2048k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP022 aiodio_sparse -o 4 -w 512k -s 2048k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP023.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP023.sh new file mode 100644 index 000000000..b1fedec7b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP023.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP023 aiodio_sparse -o 4 -w 1024k -s 4096k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP023 aiodio_sparse -o 4 -w 1024k -s 4096k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP023 aiodio_sparse -o 4 -w 1024k -s 4096k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP024.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP024.sh new file mode 100644 index 000000000..fa123aaaf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP024.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP024 aiodio_sparse -o 4 -w 2048k -s 8192k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP024 aiodio_sparse -o 4 -w 2048k -s 8192k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP024 aiodio_sparse -o 4 -w 2048k -s 8192k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP025.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP025.sh new file mode 100644 index 000000000..d5f262316 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP025.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP025 aiodio_sparse -o 4 -w 4096k -s 16384k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP025 aiodio_sparse -o 4 -w 4096k -s 16384k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP025 aiodio_sparse -o 4 -w 4096k -s 16384k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP026.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP026.sh new file mode 100644 index 000000000..e64fcd044 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP026.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP026 aiodio_sparse -o 4 -w 18192k -s 72768k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP026 aiodio_sparse -o 4 -w 18192k -s 72768k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP026 aiodio_sparse -o 4 -w 18192k -s 72768k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP027.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP027.sh new file mode 100644 index 000000000..618de9f28 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP027.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP027 aiodio_sparse -o 4 -w 18192k -s 518192k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP027 aiodio_sparse -o 4 -w 18192k -s 518192k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP027 aiodio_sparse -o 4 -w 18192k -s 518192k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP028.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP028.sh new file mode 100644 index 000000000..598a4ea3f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP028.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP028 aiodio_sparse -o 4 -w 65536k -s 262144k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP028 aiodio_sparse -o 4 -w 65536k -s 262144k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP028 aiodio_sparse -o 4 -w 65536k -s 262144k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP029.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP029.sh new file mode 100644 index 000000000..4cca482b5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP029.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP029 aiodio_sparse -o 6 -w 65536k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP029 aiodio_sparse -o 6 -w 65536k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP029 aiodio_sparse -o 6 -w 65536k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP030.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP030.sh new file mode 100644 index 000000000..4380ed89a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP030.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP030 aiodio_sparse -o 8 -w 128k -s 1024k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP030 aiodio_sparse -o 8 -w 128k -s 1024k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP030 aiodio_sparse -o 8 -w 128k -s 1024k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP031.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP031.sh new file mode 100644 index 000000000..f85109f6f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP031.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP031 aiodio_sparse -o 16 -w 256k -s 4096k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP031 aiodio_sparse -o 16 -w 256k -s 4096k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP031 aiodio_sparse -o 16 -w 256k -s 4096k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP032.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP032.sh new file mode 100644 index 000000000..4a7c10466 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP032.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP032 aiodio_sparse -o 32 -w 512k -s 16384k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP032 aiodio_sparse -o 32 -w 512k -s 16384k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP032 aiodio_sparse -o 32 -w 512k -s 16384k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP033.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP033.sh new file mode 100644 index 000000000..7eb500e65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP033.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP033 aiodio_sparse -o 64 -w 1024k -s 65536k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP033 aiodio_sparse -o 64 -w 1024k -s 65536k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP033 aiodio_sparse -o 64 -w 1024k -s 65536k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP034.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP034.sh new file mode 100644 index 000000000..5de080288 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP034.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP034 aiodio_sparse -o 4 -w 4096k -s 16384k -n 32 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP034 aiodio_sparse -o 4 -w 4096k -s 16384k -n 32 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP034 aiodio_sparse -o 4 -w 4096k -s 16384k -n 32 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP035.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP035.sh new file mode 100644 index 000000000..976d2224c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP035.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP035 aiodio_sparse -o 4 -w 4096k -s 16384k -n 64 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP035 aiodio_sparse -o 4 -w 4096k -s 16384k -n 64 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP035 aiodio_sparse -o 4 -w 4096k -s 16384k -n 64 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP036.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP036.sh new file mode 100644 index 000000000..0831432c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP036.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP036 aiodio_sparse -o 4 -w 18192k -s 72768k -n 128 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP036 aiodio_sparse -o 4 -w 18192k -s 72768k -n 128 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP036 aiodio_sparse -o 4 -w 18192k -s 72768k -n 128 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP037.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP037.sh new file mode 100644 index 000000000..06ac9ebcc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP037.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP037 aiodio_sparse -o 4 -w 18192k -n 512 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP037 aiodio_sparse -o 4 -w 18192k -n 512 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP037 aiodio_sparse -o 4 -w 18192k -n 512 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP038.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP038.sh new file mode 100644 index 000000000..34c3c6352 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP038.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP038 aiodio_sparse -o 4 -w 18192k -n 1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP038 aiodio_sparse -o 4 -w 18192k -n 1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP038 aiodio_sparse -o 4 -w 18192k -n 1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP039.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP039.sh new file mode 100644 index 000000000..27a35fe15 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP039.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP039 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP039 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP039 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP040.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP040.sh new file mode 100644 index 000000000..2974cf641 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP040.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP040 dio_sparse -s 180k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP040 dio_sparse -s 180k + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP040 dio_sparse -s 180k failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP041.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP041.sh new file mode 100644 index 000000000..59e91f5bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP041.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP041 dio_sparse -s 1751k -w 11k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP041 dio_sparse -s 1751k -w 11k + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP041 dio_sparse -s 1751k -w 11k failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP042.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP042.sh new file mode 100644 index 000000000..9ce01baf2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP042.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP042 dio_sparse -s 180k -w 18k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP042 dio_sparse -s 180k -w 18k + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP042 dio_sparse -s 180k -w 18k failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP043.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP043.sh new file mode 100644 index 000000000..1f7b813c9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP043.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP043 dio_sparse -w 2k -s 2k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP043 dio_sparse -w 2k -s 2k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP043 dio_sparse -w 2k -s 2k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP044.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP044.sh new file mode 100644 index 000000000..d8a41637c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP044.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP044 dio_sparse -w 4k -s 2k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP044 dio_sparse -w 4k -s 2k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP044 dio_sparse -w 4k -s 2k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP045.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP045.sh new file mode 100644 index 000000000..fd69f480e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP045.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP045 dio_sparse -w 4k -s 4k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP045 dio_sparse -w 4k -s 4k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP045 dio_sparse -w 4k -s 4k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP046.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP046.sh new file mode 100644 index 000000000..18617c071 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP046.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP046 dio_sparse -w 16k -s 16k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP046 dio_sparse -w 16k -s 16k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP046 dio_sparse -w 16k -s 16k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP047.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP047.sh new file mode 100644 index 000000000..c2e12579c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP047.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP047 dio_sparse -w 32k -s 32k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP047 dio_sparse -w 32k -s 32k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP047 dio_sparse -w 32k -s 32k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP048.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP048.sh new file mode 100644 index 000000000..964bb0c5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP048.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP048 dio_sparse -w 64k -s 64k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP048 dio_sparse -w 64k -s 64k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP048 dio_sparse -w 64k -s 64k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP049.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP049.sh new file mode 100644 index 000000000..9b7491112 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP049.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP049 dio_sparse -w 128k -s 128k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP049 dio_sparse -w 128k -s 128k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP049 dio_sparse -w 128k -s 128k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP050.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP050.sh new file mode 100644 index 000000000..dae7315f2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP050.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP050 dio_sparse -w 256k -s 256k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP050 dio_sparse -w 256k -s 256k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP050 dio_sparse -w 256k -s 256k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP051.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP051.sh new file mode 100644 index 000000000..67e23a4b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP051.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP051 dio_sparse -w 512k -s 512k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP051 dio_sparse -w 512k -s 512k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP051 dio_sparse -w 512k -s 512k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP052.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP052.sh new file mode 100644 index 000000000..817e74879 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP052.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP052 dio_sparse -w 1024k -s 1024k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP052 dio_sparse -w 1024k -s 1024k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP052 dio_sparse -w 1024k -s 1024k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP053.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP053.sh new file mode 100644 index 000000000..b8f9ccf78 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP053.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP053 dio_sparse -w 2048k -s 2048k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP053 dio_sparse -w 2048k -s 2048k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP053 dio_sparse -w 2048k -s 2048k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP054.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP054.sh new file mode 100644 index 000000000..923f231d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP054.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP054 dio_sparse -w 4096k -s 4096k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP054 dio_sparse -w 4096k -s 4096k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP054 dio_sparse -w 4096k -s 4096k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP055.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP055.sh new file mode 100644 index 000000000..d3796ea68 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP055.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP055 dio_sparse -w 8192k -s 8192k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP055 dio_sparse -w 8192k -s 8192k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP055 dio_sparse -w 8192k -s 8192k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP056.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP056.sh new file mode 100644 index 000000000..69a7845d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP056.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP056 dio_sparse -w 18192k -s 18192k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP056 dio_sparse -w 18192k -s 18192k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP056 dio_sparse -w 18192k -s 18192k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP057.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP057.sh new file mode 100644 index 000000000..7e843ec91 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP057.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP057 dio_sparse -w 518192k -s 518192k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP057 dio_sparse -w 518192k -s 518192k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP057 dio_sparse -w 518192k -s 518192k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP058.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP058.sh new file mode 100644 index 000000000..f2008f722 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP058.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP058 dio_sparse -w 58192k -s 58192k -n 4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP058 dio_sparse -w 58192k -s 58192k -n 4 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP058 dio_sparse -w 58192k -s 58192k -n 4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP059.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP059.sh new file mode 100644 index 000000000..fc371e44c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP059.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP059 dio_sparse -w 58192k -s 58192k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP059 dio_sparse -w 58192k -s 58192k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP059 dio_sparse -w 58192k -s 58192k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP060.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP060.sh new file mode 100644 index 000000000..b40796893 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP060.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP060 dio_sparse -w 256k -s 256k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP060 dio_sparse -w 256k -s 256k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP060 dio_sparse -w 256k -s 256k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP061.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP061.sh new file mode 100644 index 000000000..445fdd521 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP061.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP061 dio_sparse -w 512k -s 512k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP061 dio_sparse -w 512k -s 512k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP061 dio_sparse -w 512k -s 512k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP062.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP062.sh new file mode 100644 index 000000000..14973b796 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP062.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP062 dio_sparse -w 1024k -s 1024k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP062 dio_sparse -w 1024k -s 1024k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP062 dio_sparse -w 1024k -s 1024k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP063.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP063.sh new file mode 100644 index 000000000..7ff6dbc89 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP063.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP063 dio_sparse -w 2048k -s 2048k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP063 dio_sparse -w 2048k -s 2048k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP063 dio_sparse -w 2048k -s 2048k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP064.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP064.sh new file mode 100644 index 000000000..12896dd33 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP064.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP064 dio_sparse -w 2048k -s 4096k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP064 dio_sparse -w 2048k -s 4096k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP064 dio_sparse -w 2048k -s 4096k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP065.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP065.sh new file mode 100644 index 000000000..8195a260a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP065.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP065 dio_sparse -w 8192k -s 8192k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP065 dio_sparse -w 8192k -s 8192k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP065 dio_sparse -w 8192k -s 8192k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP066.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP066.sh new file mode 100644 index 000000000..ecd178610 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP066.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP066 dio_sparse -w 18192k -s 18192k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP066 dio_sparse -w 18192k -s 18192k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP066 dio_sparse -w 18192k -s 18192k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP067.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP067.sh new file mode 100644 index 000000000..844552de5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP067.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP067 dio_sparse -w 58192k -s 518192k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP067 dio_sparse -w 58192k -s 518192k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP067 dio_sparse -w 58192k -s 518192k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP068.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP068.sh new file mode 100644 index 000000000..449d3507e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP068.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP068 dio_sparse -w 518192k -s 518192k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP068 dio_sparse -w 518192k -s 518192k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP068 dio_sparse -w 518192k -s 518192k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP069.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP069.sh new file mode 100644 index 000000000..447b4045e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP069.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP069 dio_sparse -w 1024k -s 2048k -n 6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP069 dio_sparse -w 1024k -s 2048k -n 6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP069 dio_sparse -w 1024k -s 2048k -n 6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP070.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP070.sh new file mode 100644 index 000000000..4d9c5430e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP070.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP070 dio_sparse -w 4096k -s 4096k -n 32 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP070 dio_sparse -w 4096k -s 4096k -n 32 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP070 dio_sparse -w 4096k -s 4096k -n 32 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP071.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP071.sh new file mode 100644 index 000000000..4bc5cac7b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP071.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP071 dio_sparse -w 8192k -s 8192k -n 64 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP071 dio_sparse -w 8192k -s 8192k -n 64 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP071 dio_sparse -w 8192k -s 8192k -n 64 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP072.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP072.sh new file mode 100644 index 000000000..05d748e7a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP072.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP072 dio_sparse -w 518192k -s 18192k -n 128 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP072 dio_sparse -w 518192k -s 18192k -n 128 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP072 dio_sparse -w 518192k -s 18192k -n 128 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP073.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP073.sh new file mode 100644 index 000000000..421cf1df3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP073.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP073 dio_sparse -w 518192k -s 518192k -n 512 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP073 dio_sparse -w 518192k -s 518192k -n 512 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP073 dio_sparse -w 518192k -s 518192k -n 512 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP074.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP074.sh new file mode 100644 index 000000000..97b4913b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP074.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP074 dio_sparse -w 518192k -s 518192k -n 1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP074 dio_sparse -w 518192k -s 518192k -n 1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP074 dio_sparse -w 518192k -s 518192k -n 1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP075.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP075.sh new file mode 100644 index 000000000..131bf073e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP075.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP075 dio_sparse -w 4k -s 2k -o 2k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP075 dio_sparse -w 4k -s 2k -o 2k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP075 dio_sparse -w 4k -s 2k -o 2k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP076.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP076.sh new file mode 100644 index 000000000..c0d93680a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP076.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP076 dio_sparse -w 2k -s 1k -o 1k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP076 dio_sparse -w 2k -s 1k -o 1k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP076 dio_sparse -w 2k -s 1k -o 1k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP077.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP077.sh new file mode 100644 index 000000000..f2f913142 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP077.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP077 dio_sparse -w 1k -s 512 -o 512 -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP077 dio_sparse -w 1k -s 512 -o 512 -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP077 dio_sparse -w 1k -s 512 -o 512 -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP078.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP078.sh new file mode 100644 index 000000000..017fe349d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP078.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP078 dio_sparse -w 4k -s 2k -o 3k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP078 dio_sparse -w 4k -s 2k -o 3k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP078 dio_sparse -w 4k -s 2k -o 3k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP079.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP079.sh new file mode 100644 index 000000000..b2ca7be4a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP079.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP079 dio_sparse -w 4k -s 4k -o 4k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP079 dio_sparse -w 4k -s 4k -o 4k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP079 dio_sparse -w 4k -s 4k -o 4k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP080.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP080.sh new file mode 100644 index 000000000..55decfba9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP080.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP080 dio_sparse -w 4k -s 4k -o 6k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP080 dio_sparse -w 4k -s 4k -o 6k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP080 dio_sparse -w 4k -s 4k -o 6k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP081.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP081.sh new file mode 100644 index 000000000..00809edbc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP081.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP081 dio_sparse -w 4k -s 4k -o 8k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP081 dio_sparse -w 4k -s 4k -o 8k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP081 dio_sparse -w 4k -s 4k -o 8k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP082.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP082.sh new file mode 100644 index 000000000..dd8529170 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part2/oe_test_ltp_ltp-aiodio_part2_ADSP082.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part2 ADSP082 dio_sparse -w 16k -s 8k -o 8k -n 2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part2 -s ADSP082 dio_sparse -w 16k -s 8k -o 8k -n 2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part2 ADSP082 dio_sparse -w 16k -s 8k -o 8k -n 2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx01.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx01.sh new file mode 100644 index 000000000..44412b3a8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx01 fsx-linux -l 500000 -r 4096 -t 4096 -w 4096 -N 10000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx01 fsx-linux -l 500000 -r 4096 -t 4096 -w 4096 -N 10000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx01 fsx-linux -l 500000 -r 4096 -t 4096 -w 4096 -N 10000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx02.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx02.sh new file mode 100644 index 000000000..348574e2a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx02 fsx-linux -l 500000 -r 4096 -t 2048 -w 2048 -N 10000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx02 fsx-linux -l 500000 -r 4096 -t 2048 -w 2048 -N 10000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx02 fsx-linux -l 500000 -r 4096 -t 2048 -w 2048 -N 10000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx03.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx03.sh new file mode 100644 index 000000000..75608de44 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx03 fsx-linux -l 500000 -r 4096 -N 10000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx03 fsx-linux -l 500000 -r 4096 -N 10000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx03 fsx-linux -l 500000 -r 4096 -N 10000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx04.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx04.sh new file mode 100644 index 000000000..4cfb3456e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx04 fsx-linux -N 10000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx04 fsx-linux -N 10000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx04 fsx-linux -N 10000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx05.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx05.sh new file mode 100644 index 000000000..271723e00 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx05 fsx-linux -N 10000 -o 1024 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx05 fsx-linux -N 10000 -o 1024 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx05 fsx-linux -N 10000 -o 1024 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx06.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx06.sh new file mode 100644 index 000000000..43d897cd6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx06 fsx-linux -N 10000 -o 2048 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx06 fsx-linux -N 10000 -o 2048 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx06 fsx-linux -N 10000 -o 2048 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx07.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx07.sh new file mode 100644 index 000000000..181b766e7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx07 fsx-linux -N 10000 -o 4096 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx07 fsx-linux -N 10000 -o 4096 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx07 fsx-linux -N 10000 -o 4096 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx08.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx08.sh new file mode 100644 index 000000000..8a7022d97 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx08 fsx-linux -N 10000 -o 8192 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx08 fsx-linux -N 10000 -o 8192 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx08 fsx-linux -N 10000 -o 8192 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx09.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx09.sh new file mode 100644 index 000000000..3b335542c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx09 fsx-linux -N 10000 -o 16384 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx09 fsx-linux -N 10000 -o 16384 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx09 fsx-linux -N 10000 -o 16384 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx10.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx10.sh new file mode 100644 index 000000000..aa5a1ca43 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx10 fsx-linux -N 10000 -o 32768 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx10 fsx-linux -N 10000 -o 32768 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx10 fsx-linux -N 10000 -o 32768 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx12.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx12.sh new file mode 100644 index 000000000..adc1e3930 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx12 fsx-linux -N 10000 -o 128000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx12 fsx-linux -N 10000 -o 128000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx12 fsx-linux -N 10000 -o 128000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx13.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx13.sh new file mode 100644 index 000000000..28c389414 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx13 fsx-linux -N 10000 -o 1024 -l 500000 -r 4096 -t 4096 -w 4096 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx13 fsx-linux -N 10000 -o 1024 -l 500000 -r 4096 -t 4096 -w 4096 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx13 fsx-linux -N 10000 -o 1024 -l 500000 -r 4096 -t 4096 -w 4096 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx14.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx14.sh new file mode 100644 index 000000000..26754a1d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx14 fsx-linux -N 10000 -o 2048 -l 500000 -r 4096 -t 2048 -w 2048 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx14 fsx-linux -N 10000 -o 2048 -l 500000 -r 4096 -t 2048 -w 2048 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx14 fsx-linux -N 10000 -o 2048 -l 500000 -r 4096 -t 2048 -w 2048 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx15.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx15.sh new file mode 100644 index 000000000..771f24f71 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx15 fsx-linux -N 10000 -o 4096 -l 500000 -r 4096 -t 4096 -w 4096 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx15 fsx-linux -N 10000 -o 4096 -l 500000 -r 4096 -t 4096 -w 4096 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx15 fsx-linux -N 10000 -o 4096 -l 500000 -r 4096 -t 4096 -w 4096 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx16.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx16.sh new file mode 100644 index 000000000..fbe598a8c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx16 fsx-linux -N 10000 -o 8192 -l 500000 -r 4096 -t 2048 -w 2048 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx16 fsx-linux -N 10000 -o 8192 -l 500000 -r 4096 -t 2048 -w 2048 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx16 fsx-linux -N 10000 -o 8192 -l 500000 -r 4096 -t 2048 -w 2048 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx17.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx17.sh new file mode 100644 index 000000000..e587b88f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx17 fsx-linux -N 10000 -o 16384 -l 500000 -r 4096 -t 4096 -w 4096 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx17 fsx-linux -N 10000 -o 16384 -l 500000 -r 4096 -t 4096 -w 4096 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx17 fsx-linux -N 10000 -o 16384 -l 500000 -r 4096 -t 4096 -w 4096 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx18.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx18.sh new file mode 100644 index 000000000..afa0970fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx18 fsx-linux -N 10000 -o 32768 -l 500000 -r 4096 -t 2048 -w 2048 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx18 fsx-linux -N 10000 -o 32768 -l 500000 -r 4096 -t 2048 -w 2048 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx18 fsx-linux -N 10000 -o 32768 -l 500000 -r 4096 -t 2048 -w 2048 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx19.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx19.sh new file mode 100644 index 000000000..ec05584d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx19 fsx-linux -N 10000 -o 128000 -l 500000 -r 4096 -t 4096 -w 4096 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx19 fsx-linux -N 10000 -o 128000 -l 500000 -r 4096 -t 4096 -w 4096 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx19 fsx-linux -N 10000 -o 128000 -l 500000 -r 4096 -t 4096 -w 4096 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx20.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx20.sh new file mode 100644 index 000000000..afd38de00 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx20 fsx-linux -N 10000 -o 128000 -l 500000 -r 4096 -t 4096 -w 40963 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx20 fsx-linux -N 10000 -o 128000 -l 500000 -r 4096 -t 4096 -w 40963 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx20 fsx-linux -N 10000 -o 128000 -l 500000 -r 4096 -t 4096 -w 40963 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx21.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx21.sh new file mode 100644 index 000000000..f726b5f28 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx21 fsx-linux -N 10000 -o 128000 -l 500000 -r 4096 -t 4096 -w 40966 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx21 fsx-linux -N 10000 -o 128000 -l 500000 -r 4096 -t 4096 -w 40966 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx21 fsx-linux -N 10000 -o 128000 -l 500000 -r 4096 -t 4096 -w 40966 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx22.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx22.sh new file mode 100644 index 000000000..54cd4c234 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part3/oe_test_ltp_ltp-aiodio_part3_fsx22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part3 fsx22 fsx-linux -N 100000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part3 -s fsx22 fsx-linux -N 100000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part3 fsx22 fsx-linux -N 100000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD000.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD000.sh new file mode 100644 index 000000000..64d55e79c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD000.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD000 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD000 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD000 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD001.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD001.sh new file mode 100644 index 000000000..368a82288 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD001 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD001 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD001 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD002.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD002.sh new file mode 100644 index 000000000..9d04e8b33 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD002.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD002 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD002 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD002 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD003.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD003.sh new file mode 100644 index 000000000..007f129ce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD003.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD003 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD003 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD003 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD004.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD004.sh new file mode 100644 index 000000000..95dba029b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD004.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD004 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD004 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD004 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD005.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD005.sh new file mode 100644 index 000000000..fe79ad20c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD005.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD005 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD005 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD005 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD006.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD006.sh new file mode 100644 index 000000000..a4ae16439 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD006.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD006 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD006 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD006 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD007.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD007.sh new file mode 100644 index 000000000..9508824fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD007.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD007 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD007 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD007 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD008.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD008.sh new file mode 100644 index 000000000..3e3d5ebc7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD008.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD008 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD008 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD008 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD009.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD009.sh new file mode 100644 index 000000000..39f8a463d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_AD009.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 AD009 aiodio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s AD009 aiodio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 AD009 aiodio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI000.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI000.sh new file mode 100644 index 000000000..b9c913419 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI000.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI000 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI000 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI000 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI001.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI001.sh new file mode 100644 index 000000000..bb444c653 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI001 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI001 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI001 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI002.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI002.sh new file mode 100644 index 000000000..9899b305e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI002.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI002 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI002 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI002 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI003.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI003.sh new file mode 100644 index 000000000..38f945a56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI003.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI003 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI003 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI003 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI004.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI004.sh new file mode 100644 index 000000000..9a0b9e512 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI004.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI004 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI004 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI004 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI005.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI005.sh new file mode 100644 index 000000000..09879044f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI005.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI005 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI005 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI005 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI006.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI006.sh new file mode 100644 index 000000000..6edcab54b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI006.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI006 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI006 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI006 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI007.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI007.sh new file mode 100644 index 000000000..05aedcc24 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI007.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI007 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI007 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI007 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI008.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI008.sh new file mode 100644 index 000000000..8b5aee1f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI008.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI008 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI008 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI008 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI009.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI009.sh new file mode 100644 index 000000000..356835a76 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_ADI009.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 ADI009 dio_append +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s ADI009 dio_append + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 ADI009 dio_append failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI000.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI000.sh new file mode 100644 index 000000000..32c1107b8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI000.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI000 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI000 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI000 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI001.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI001.sh new file mode 100644 index 000000000..071fbcd07 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI001 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI001 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI001 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI002.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI002.sh new file mode 100644 index 000000000..0bffd480b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI002.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI002 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI002 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI002 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI003.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI003.sh new file mode 100644 index 000000000..fa6cd67be --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI003.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI003 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI003 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI003 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI004.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI004.sh new file mode 100644 index 000000000..6b329b7de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI004.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI004 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI004 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI004 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI005.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI005.sh new file mode 100644 index 000000000..f6382b550 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI005.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI005 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI005 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI005 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI006.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI006.sh new file mode 100644 index 000000000..8f6433f00 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI006.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI006 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI006 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI006 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI007.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI007.sh new file mode 100644 index 000000000..65cec1d6e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI007.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI007 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI007 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI007 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI008.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI008.sh new file mode 100644 index 000000000..614881ee2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI008.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI008 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI008 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI008 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI009.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI009.sh new file mode 100644 index 000000000..5c2f2703e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DI009.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DI009 dirty +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DI009 dirty + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DI009 dirty failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO00.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO00.sh new file mode 100644 index 000000000..a47e69826 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO00.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO00 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO00 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO00 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO01.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO01.sh new file mode 100644 index 000000000..5b8958236 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO01 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO01 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO01 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO02.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO02.sh new file mode 100644 index 000000000..78bc6e8b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO02 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO02 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO02 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO03.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO03.sh new file mode 100644 index 000000000..c1b08c2cc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO03 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO03 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO03 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO04.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO04.sh new file mode 100644 index 000000000..ca3eaa6e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO04 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO04 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO04 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO05.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO05.sh new file mode 100644 index 000000000..543ceb1d3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO05 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO05 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO05 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO06.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO06.sh new file mode 100644 index 000000000..55436bc64 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO06 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO06 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO06 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO07.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO07.sh new file mode 100644 index 000000000..816b9703b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO07 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO07 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO07 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO08.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO08.sh new file mode 100644 index 000000000..b904661d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO08 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO08 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO08 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO09.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO09.sh new file mode 100644 index 000000000..a8fb2bb1b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIO09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIO09 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIO09 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIO09 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT000.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT000.sh new file mode 100644 index 000000000..adaf7f56c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT000.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIT000 dio_truncate -n 1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIT000 dio_truncate -n 1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIT000 dio_truncate -n 1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT001.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT001.sh new file mode 100644 index 000000000..945b36af0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIT001 dio_truncate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIT001 dio_truncate + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIT001 dio_truncate failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT002.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT002.sh new file mode 100644 index 000000000..7cfbb7cf4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DIT002.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DIT002 dio_truncate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DIT002 dio_truncate + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DIT002 dio_truncate failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR000.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR000.sh new file mode 100644 index 000000000..e64352df5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR000.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DOR000 dio_read -n 1 -i 100 -r 512k -w 512k -s 32M +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DOR000 dio_read -n 1 -i 100 -r 512k -w 512k -s 32M + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DOR000 dio_read -n 1 -i 100 -r 512k -w 512k -s 32M failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR001.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR001.sh new file mode 100644 index 000000000..2097682c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DOR001 dio_read -n 10 -i 30 -r 512k -w 512k -s 32M +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DOR001 dio_read -n 10 -i 30 -r 512k -w 512k -s 32M + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DOR001 dio_read -n 10 -i 30 -r 512k -w 512k -s 32M failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR002.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR002.sh new file mode 100644 index 000000000..5e7a3477d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR002.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DOR002 dio_read -n 20 -i 15 -r 512k -w 512k -s 32M +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DOR002 dio_read -n 20 -i 15 -r 512k -w 512k -s 32M + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DOR002 dio_read -n 20 -i 15 -r 512k -w 512k -s 32M failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR003.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR003.sh new file mode 100644 index 000000000..6e3db5f37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DOR003.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DOR003 dio_read -n 100 -i 4 -r 512k -w 512k -s 32M +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DOR003 dio_read -n 100 -i 4 -r 512k -w 512k -s 32M + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DOR003 dio_read -n 100 -i 4 -r 512k -w 512k -s 32M failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS000.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS000.sh new file mode 100644 index 000000000..47d0e5731 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS000.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS000 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS000 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS000 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS001.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS001.sh new file mode 100644 index 000000000..1f862152a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS001 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS001 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS001 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS002.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS002.sh new file mode 100644 index 000000000..abdfd6b81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS002.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS002 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS002 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS002 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS003.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS003.sh new file mode 100644 index 000000000..4f1164c0d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS003.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS003 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS003 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS003 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS004.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS004.sh new file mode 100644 index 000000000..82722ffd5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS004.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS004 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS004 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS004 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS005.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS005.sh new file mode 100644 index 000000000..c0dfdee0d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS005.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS005 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS005 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS005 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS006.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS006.sh new file mode 100644 index 000000000..72f831627 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS006.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS006 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS006 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS006 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS007.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS007.sh new file mode 100644 index 000000000..b14de124c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS007.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS007 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS007 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS007 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS008.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS008.sh new file mode 100644 index 000000000..5c562f065 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS008.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS008 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS008 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS008 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS009.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS009.sh new file mode 100644 index 000000000..9f8456dad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_DS009.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 DS009 dio_sparse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s DS009 dio_sparse + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 DS009 dio_sparse failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_aio01.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_aio01.sh new file mode 100644 index 000000000..83a672f0c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_aio01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 aio01 aio01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s aio01 aio01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 aio01 aio01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_aio02.sh b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_aio02.sh new file mode 100644 index 000000000..ed438927f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ltp-aiodio_part4/oe_test_ltp_ltp-aiodio_part4_aio02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ltp-aiodio_part4 aio02 aio02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f ltp-aiodio.part4 -s aio02 aio02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "ltp-aiodio.part4 aio02 aio02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_abs01.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_abs01.sh index 160b90964..924e79de1 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_abs01.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_abs01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s abs01 abs01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math abs01 abs01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_atof01.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_atof01.sh index 641f8ade1..bf4b8febc 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_atof01.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_atof01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s atof01 atof01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math atof01 atof01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_bessel.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_bessel.sh index 2cff4e6f0..07cf4c1cc 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_bessel.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_bessel.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s float_bessel float_bessel -v - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math float_bessel float_bessel -v failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_exp_log.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_exp_log.sh index 9e7238f34..10faa74a3 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_exp_log.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_exp_log.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s float_exp_log float_exp_log -v - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math float_exp_log float_exp_log -v failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_iperb.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_iperb.sh index dfbbc9d5f..36e3fd80f 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_iperb.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_iperb.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s float_iperb float_iperb -v - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math float_iperb float_iperb -v failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_power.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_power.sh index 2a5aba50e..a9ed8e968 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_power.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_power.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s float_power float_power -v - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math float_power float_power -v failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_trigo.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_trigo.sh index e6b30adc0..7581ca912 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_trigo.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_trigo.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s float_trigo float_trigo -v - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math float_trigo float_trigo -v failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest01.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest01.sh index f6dec66e6..f7ff6a941 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest01.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s fptest01 fptest01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math fptest01 fptest01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest02.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest02.sh index 923b94767..fda5f98ec 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest02.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s fptest02 fptest02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math fptest02 fptest02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_nextafter01.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_nextafter01.sh index 784173f08..b6dc80927 100644 --- a/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_nextafter01.sh +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_nextafter01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f math -s nextafter01 nextafter01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "math nextafter01 nextafter01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_cpuset01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_cpuset01.sh index 18e4b568b..418c53941 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_cpuset01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_cpuset01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s cpuset01 cpuset01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm cpuset01 cpuset01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_data_space.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_data_space.sh index 8d4e61ba8..d9ffef7dd 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_data_space.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_data_space.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s data_space data_space - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm data_space data_space failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_kallsyms.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_kallsyms.sh new file mode 100644 index 000000000..0d9bd7239 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_kallsyms.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_mm kallsyms kallsyms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f mm -s kallsyms kallsyms + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "mm kallsyms kallsyms failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01.sh index 46a693a97..7cf1f47ab 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm01 ksm01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm01 ksm01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01_1.sh index 86f0c1417..ca48993b7 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01_1.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm01_1 ksm01 -u 128 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm01_1 ksm01 -u 128 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02.sh index ba2474463..c6a579435 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm02 ksm02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm02 ksm02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02_1.sh index 666febe0b..ee3520547 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02_1.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm02_1 ksm02 -u 128 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm02_1 ksm02 -u 128 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03.sh index 3957d4ac1..5086854ed 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm03 ksm03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm03 ksm03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03_1.sh index 9fc58c5c0..61c610970 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03_1.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm03_1 ksm03 -u 128 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm03_1 ksm03 -u 128 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04.sh index 1576a966c..694f30d76 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm04 ksm04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm04 ksm04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04_1.sh index c8d001a15..180f87794 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04_1.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm04_1 ksm04 -u 128 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm04_1 ksm04 -u 128 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm05.sh index 2ec360736..d38a485b9 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm05.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm05 ksm05 -I 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm05 ksm05 -I 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06.sh index bfac924b5..bfa902db3 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm06 ksm06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm06 ksm06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_1.sh index 7ea0949b0..d67323e61 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_1.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm06_1 ksm06 -n 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm06_1 ksm06 -n 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_2.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_2.sh index 6783fce7d..6170a879e 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_2.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm06_2 ksm06 -n 8000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm06_2 ksm06 -n 8000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm07.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm07.sh index dfcac0968..19905ba9d 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm07.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s ksm07 ksm07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm ksm07 ksm07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mallocstress01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mallocstress01.sh index 870d3e576..d4557b361 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mallocstress01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mallocstress01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mallocstress01 mallocstress - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mallocstress01 mallocstress failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_max_map_count.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_max_map_count.sh index b59407b5b..3c563de66 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_max_map_count.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_max_map_count.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s max_map_count max_map_count -i 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm max_map_count max_map_count -i 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mem02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mem02.sh index 353f45a28..92b2cf8d7 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mem02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mem02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mem02 mem02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mem02 mem02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_min_free_kbytes.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_min_free_kbytes.sh index cc89b9b08..69074515e 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_min_free_kbytes.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_min_free_kbytes.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s min_free_kbytes min_free_kbytes - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm min_free_kbytes min_free_kbytes failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm01.sh index 0534aee35..75316e013 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mm01 mmap001 -m 10000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mm01 mmap001 -m 10000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm02.sh index 5329369ad..c8e0ff473 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mm02 mmap001 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mm02 mmap001 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10.sh index c857ffd4d..1b80ec948 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmap10 mmap10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmap10 mmap10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_1.sh index 00feb6c5e..9124cedbf 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_1.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_1.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmap10_1 mmap10 -a - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmap10_1 mmap10 -a failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_2.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_2.sh index 401ac31bb..5a009cddf 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_2.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmap10_2 mmap10 -s - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmap10_2 mmap10 -s failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_3.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_3.sh index cba51f840..a5ed6e798 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_3.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_3.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmap10_3 mmap10 -a -s - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmap10_3 mmap10 -a -s failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_4.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_4.sh index 6ec5193d2..c924e1adb 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_4.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_4.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmap10_4 mmap10 -a -s -i 60 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmap10_4 mmap10 -a -s -i 60 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress01.sh index c7298b214..e63fee450 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress01 mmapstress01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress01 mmapstress01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress02.sh index 5156362fe..c76a40e12 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress02 mmapstress02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress02 mmapstress02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress03.sh index 6e5357b7e..7bf4e62c2 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress03.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress03 mmapstress03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress03 mmapstress03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress04.sh index 46f1e6ece..c090e09aa 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress04.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress04 mmapstress04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress04 mmapstress04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress05.sh index 59833fce5..bd39f4e96 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress05.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress05 mmapstress05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress05 mmapstress05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress06.sh index 2751f85b4..70b536762 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress06.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress06 mmapstress06 20 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress06 mmapstress06 20 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress07.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress07.sh index 8d0dcc697..411b2bc7d 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress07.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress07 TMPFILE=`mktemp /tmp/example.XXXXXXXXXXXX`; mmapstress07 $TMPFILE - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress07 TMPFILE=`mktemp /tmp/example.XXXXXXXXXXXX`; mmapstress07 $TMPFILE failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress08.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress08.sh index 117c80f53..5f8c16dd1 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress08.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress08 mmapstress08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress08 mmapstress08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress09.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress09.sh index 05abdccee..1f8a78e55 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress09.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress09 mmapstress09 -p 20 -t 0.2 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress09 mmapstress09 -p 20 -t 0.2 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress10.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress10.sh index cdc7c5211..8f987b46e 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress10.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mmapstress10 mmapstress10 -p 20 -t 0.2 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mmapstress10 mmapstress10 -p 20 -t 0.2 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01.sh index db9f233ba..ea7448cb6 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mtest01 mtest01 -p80 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mtest01 mtest01 -p80 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01w.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01w.sh index 17232216f..412ae83bf 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01w.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01w.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mtest01w mtest01 -p80 -w - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mtest01w mtest01 -p80 -w failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest05.sh index 6c3ab5721..b6755cb66 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest05.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mtest05 mmstress - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mtest05 mmstress failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06.sh index ca2049e70..7cbfa7886 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mtest06 mmap1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mtest06 mmap1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_2.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_2.sh index e6b4e31e8..a89756ef3 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_2.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_2.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mtest06_2 mmap2 -a -p - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mtest06_2 mmap2 -a -p failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_3.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_3.sh index 41b169981..a9922bd87 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_3.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_3.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s mtest06_3 mmap3 -p - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm mtest06_3 mmap3 -p failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom01.sh index 1dbb44ebd..595b6cc70 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s oom01 oom01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm oom01 oom01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom02.sh index 6bebabd75..c56cfb1cb 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s oom02 oom02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm oom02 oom02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom03.sh index 2588f9982..235e20324 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom03.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s oom03 oom03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm oom03 oom03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom04.sh index e7cf48320..ad02be1c1 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom04.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s oom04 oom04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm oom04 oom04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom05.sh index a487769bd..148b665cc 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom05.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s oom05 oom05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm oom05 oom05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory01.sh index 5c8476c36..d6e9cec8e 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s overcommit_memory01 overcommit_memory - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm overcommit_memory01 overcommit_memory failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory02.sh index 7db2fe5f0..49aa19b4c 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s overcommit_memory02 overcommit_memory -R 0 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm overcommit_memory02 overcommit_memory -R 0 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory03.sh index da0b7fd96..c7ad95020 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory03.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s overcommit_memory03 overcommit_memory -R 30 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm overcommit_memory03 overcommit_memory -R 30 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory04.sh index 0b3cc5ad7..cdf6c2e59 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory04.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s overcommit_memory04 overcommit_memory -R 80 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm overcommit_memory04 overcommit_memory -R 80 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory05.sh index c3f2da970..24599ef86 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory05.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s overcommit_memory05 overcommit_memory -R 100 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm overcommit_memory05 overcommit_memory -R 100 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory06.sh index 55987155f..d0a37bfd1 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory06.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s overcommit_memory06 overcommit_memory -R 200 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm overcommit_memory06 overcommit_memory -R 200 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page01.sh index faea2c733..9edfa39c5 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s page01 page01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm page01 page01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page02.sh index 0e65eeaf9..89de28aae 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s page02 page02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm page02 page02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shm_test01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shm_test01.sh index 67d5a2ac5..84b412946 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shm_test01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shm_test01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shm_test01 shm_test -l 10 -t 2 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shm_test01 shm_test -l 10 -t 2 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt02.sh index f363160a9..a60ea338d 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shmt02 shmt02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shmt02 shmt02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt03.sh index 66cb3b5fc..3408445b3 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt03.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shmt03 shmt03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shmt03 shmt03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt04.sh index 2dd0f1a5e..383fe5b04 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt04.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shmt04 shmt04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shmt04 shmt04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt05.sh index b6075e7a6..10e66862f 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt05.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shmt05 shmt05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shmt05 shmt05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt06.sh index 573fd847f..fce3aa284 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt06.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shmt06 shmt06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shmt06 shmt06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt07.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt07.sh index ed4a694b9..b786470cb 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt07.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shmt07 shmt07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shmt07 shmt07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt08.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt08.sh index fc89ea8d6..314011b0d 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt08.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shmt08 shmt08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shmt08 shmt08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt09.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt09.sh index 091b776f2..aa58c49c1 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt09.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shmt09 shmt09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shmt09 shmt09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt10.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt10.sh index 59873edce..e628de824 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt10.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s shmt10 shmt10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm shmt10 shmt10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_stack_space.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_stack_space.sh index 847a39f3a..60837b3dd 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_stack_space.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_stack_space.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s stack_space stack_space - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm stack_space stack_space failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_swapping01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_swapping01.sh index cfb459890..2fad304c1 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_swapping01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_swapping01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s swapping01 swapping01 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm swapping01 swapping01 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp01.sh index 581707f26..be0093285 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s thp01 thp01 -I 120 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm thp01 thp01 -I 120 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp02.sh index 2052dab4b..a0cad9deb 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s thp02 thp02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm thp02 thp02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp03.sh index 375253844..905959cbc 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp03.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s thp03 thp03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm thp03 thp03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp04.sh index 8bc2cc97f..6bc3957d0 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp04.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s thp04 thp04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm thp04 thp04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma01.sh index 13fe5f78c..eb191d4bb 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma01.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s vma01 vma01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm vma01 vma01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma02.sh index 2a047d504..17d9401d5 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma02.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s vma02 vma02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm vma02 vma02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma03.sh index 6b91f2e64..7c8970dd8 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma03.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s vma03 vma03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm vma03 vma03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma04.sh index 8c49621c0..059d7d9e5 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma04.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s vma04 vma04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm vma04 vma04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma05.sh index bd89f3c89..57cd9dc7d 100644 --- a/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma05.sh +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f mm -s vma05 vma05.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "mm vma05 vma05.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr01.sh new file mode 100644 index 000000000..d1d1b3a98 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features bbr01 bbr01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s bbr01 bbr01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features bbr01 bbr01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr01_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr01_ipv6.sh new file mode 100644 index 000000000..e18dbbcda --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr01_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features bbr01_ipv6 bbr01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s bbr01_ipv6 bbr01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features bbr01_ipv6 bbr01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr02.sh new file mode 100644 index 000000000..90d5da6fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features bbr02 bbr02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s bbr02 bbr02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features bbr02 bbr02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr02_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr02_ipv6.sh new file mode 100644 index 000000000..652f42a12 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bbr02_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features bbr02_ipv6 bbr02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s bbr02_ipv6 bbr02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features bbr02_ipv6 bbr02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bind_noport01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bind_noport01.sh new file mode 100644 index 000000000..f31421710 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bind_noport01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features bind_noport01 bind_noport01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s bind_noport01 bind_noport01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features bind_noport01 bind_noport01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bind_noport01_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bind_noport01_ipv6.sh new file mode 100644 index 000000000..c44297fdf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_bind_noport01_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features bind_noport01_ipv6 bind_noport01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s bind_noport01_ipv6 bind_noport01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features bind_noport01_ipv6 bind_noport01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll01.sh new file mode 100644 index 000000000..e8505c96d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features busy_poll01 busy_poll01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s busy_poll01 busy_poll01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features busy_poll01 busy_poll01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll01_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll01_ipv6.sh new file mode 100644 index 000000000..9a8e9701e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll01_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features busy_poll01_ipv6 busy_poll01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s busy_poll01_ipv6 busy_poll01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features busy_poll01_ipv6 busy_poll01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll02.sh new file mode 100644 index 000000000..45967e019 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features busy_poll02 busy_poll02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s busy_poll02 busy_poll02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features busy_poll02 busy_poll02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll02_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll02_ipv6.sh new file mode 100644 index 000000000..ccb34e9c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll02_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features busy_poll02_ipv6 busy_poll02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s busy_poll02_ipv6 busy_poll02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features busy_poll02_ipv6 busy_poll02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll03.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll03.sh new file mode 100644 index 000000000..9cd5d47e3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features busy_poll03 busy_poll03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s busy_poll03 busy_poll03.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features busy_poll03 busy_poll03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll03_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll03_ipv6.sh new file mode 100644 index 000000000..d744ee29c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_busy_poll03_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features busy_poll03_ipv6 busy_poll03.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s busy_poll03_ipv6 busy_poll03.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features busy_poll03_ipv6 busy_poll03.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dccp01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dccp01.sh new file mode 100644 index 000000000..d0e31a390 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dccp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features dccp01 dccp01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s dccp01 dccp01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features dccp01 dccp01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dccp01_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dccp01_ipv6.sh new file mode 100644 index 000000000..b6186a0e0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dccp01_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features dccp01_ipv6 dccp01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s dccp01_ipv6 dccp01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features dccp01_ipv6 dccp01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dctcp_ipv4_01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dctcp_ipv4_01.sh new file mode 100644 index 000000000..641e40049 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dctcp_ipv4_01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features dctcp_ipv4_01 dctcp01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s dctcp_ipv4_01 dctcp01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features dctcp_ipv4_01 dctcp01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dctcp_ipv6_01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dctcp_ipv6_01.sh new file mode 100644 index 000000000..ae003198b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_dctcp_ipv6_01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features dctcp_ipv6_01 dctcp01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s dctcp_ipv6_01 dctcp01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features dctcp_ipv6_01 dctcp01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fanout01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fanout01.sh new file mode 100644 index 000000000..81b112132 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fanout01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features fanout01 fanout01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s fanout01 fanout01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features fanout01 fanout01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fou01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fou01.sh new file mode 100644 index 000000000..68c0952b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fou01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features fou01 fou01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s fou01 fou01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features fou01 fou01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fou01_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fou01_ipv6.sh new file mode 100644 index 000000000..d62d10841 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_fou01_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features fou01_ipv6 fou01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s fou01_ipv6 fou01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features fou01_ipv6 fou01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve01.sh new file mode 100644 index 000000000..6f548d094 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features geneve01 geneve01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s geneve01 geneve01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features geneve01 geneve01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve01_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve01_ipv6.sh new file mode 100644 index 000000000..922a8a4af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve01_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features geneve01_ipv6 geneve01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s geneve01_ipv6 geneve01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features geneve01_ipv6 geneve01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve02.sh new file mode 100644 index 000000000..8e79a481f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features geneve02 geneve02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s geneve02 geneve02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features geneve02 geneve02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve02_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve02_ipv6.sh new file mode 100644 index 000000000..5b2b12d92 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_geneve02_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features geneve02_ipv6 geneve02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s geneve02_ipv6 geneve02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features geneve02_ipv6 geneve02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv4_01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv4_01.sh new file mode 100644 index 000000000..dd1103537 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv4_01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features gre_ipv4_01 gre01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s gre_ipv4_01 gre01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features gre_ipv4_01 gre01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv4_02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv4_02.sh new file mode 100644 index 000000000..3d78c8efe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv4_02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features gre_ipv4_02 gre02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s gre_ipv4_02 gre02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features gre_ipv4_02 gre02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv6_01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv6_01.sh new file mode 100644 index 000000000..059bb4061 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv6_01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features gre_ipv6_01 gre01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s gre_ipv6_01 gre01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features gre_ipv6_01 gre01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv6_02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv6_02.sh new file mode 100644 index 000000000..b0ede0485 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gre_ipv6_02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features gre_ipv6_02 gre02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s gre_ipv6_02 gre02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features gre_ipv6_02 gre02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gue01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gue01.sh new file mode 100644 index 000000000..475d18c85 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gue01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features gue01 fou01.sh -t gue +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s gue01 fou01.sh -t gue + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features gue01 fou01.sh -t gue failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gue01_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gue01_ipv6.sh new file mode 100644 index 000000000..d642ae4d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_gue01_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features gue01_ipv6 fou01.sh -t gue -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s gue01_ipv6 fou01.sh -t gue -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features gue01_ipv6 fou01.sh -t gue -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_ipvlan01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_ipvlan01.sh new file mode 100644 index 000000000..f8e6847ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_ipvlan01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features ipvlan01 ipvlan01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s ipvlan01 ipvlan01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features ipvlan01 ipvlan01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec01.sh new file mode 100644 index 000000000..792dfe8b4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features macsec01 macsec01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s macsec01 macsec01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features macsec01 macsec01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec02.sh new file mode 100644 index 000000000..ed658bdb2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features macsec02 macsec02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s macsec02 macsec02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features macsec02 macsec02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec03.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec03.sh new file mode 100644 index 000000000..c69ddb74c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macsec03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features macsec03 macsec03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s macsec03 macsec03.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features macsec03 macsec03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macvlan01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macvlan01.sh new file mode 100644 index 000000000..5c37d2690 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macvlan01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features macvlan01 macvlan01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s macvlan01 macvlan01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features macvlan01 macvlan01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macvtap01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macvtap01.sh new file mode 100644 index 000000000..704dc4947 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_macvtap01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features macvtap01 macvtap01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s macvtap01 macvtap01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features macvtap01 macvtap01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls01.sh new file mode 100644 index 000000000..a09720ac5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features mpls01 mpls01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s mpls01 mpls01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features mpls01 mpls01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls02.sh new file mode 100644 index 000000000..6b7456fcd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features mpls02 mpls02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s mpls02 mpls02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features mpls02 mpls02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls02_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls02_ipv6.sh new file mode 100644 index 000000000..e356bd90f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls02_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features mpls02_ipv6 mpls02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s mpls02_ipv6 mpls02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features mpls02_ipv6 mpls02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls03.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls03.sh new file mode 100644 index 000000000..8bb5293ff --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features mpls03 mpls03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s mpls03 mpls03.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features mpls03 mpls03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls03_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls03_ipv6.sh new file mode 100644 index 000000000..f55d10100 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls03_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features mpls03_ipv6 mpls03.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s mpls03_ipv6 mpls03.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features mpls03_ipv6 mpls03.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls04.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls04.sh new file mode 100644 index 000000000..cfef79690 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_mpls04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features mpls04 mpls04.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s mpls04 mpls04.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features mpls04 mpls04.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sctp01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sctp01.sh new file mode 100644 index 000000000..a7d812825 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sctp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features sctp01 sctp01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s sctp01 sctp01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features sctp01 sctp01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sctp01_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sctp01_ipv6.sh new file mode 100644 index 000000000..488b49aee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sctp01_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features sctp01_ipv6 sctp01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s sctp01_ipv6 sctp01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features sctp01_ipv6 sctp01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sit01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sit01.sh new file mode 100644 index 000000000..06b6795dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_sit01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features sit01 sit01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s sit01 sit01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features sit01 sit01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_tcp_fastopen.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_tcp_fastopen.sh new file mode 100644 index 000000000..dc7a7ca64 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_tcp_fastopen.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features tcp_fastopen tcp_fastopen_run.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s tcp_fastopen tcp_fastopen_run.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features tcp_fastopen tcp_fastopen_run.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_tcp_fastopen6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_tcp_fastopen6.sh new file mode 100644 index 000000000..606d01532 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_tcp_fastopen6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features tcp_fastopen6 tcp_fastopen_run.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s tcp_fastopen6 tcp_fastopen_run.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features tcp_fastopen6 tcp_fastopen_run.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan01.sh new file mode 100644 index 000000000..6bfdcba48 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vlan01 vlan01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vlan01 vlan01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vlan01 vlan01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan02.sh new file mode 100644 index 000000000..db5c72dac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vlan02 vlan02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vlan02 vlan02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vlan02 vlan02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan03.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan03.sh new file mode 100644 index 000000000..f8398c151 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vlan03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vlan03 vlan03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vlan03 vlan03.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vlan03 vlan03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan01.sh new file mode 100644 index 000000000..b3ef7fcc4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vxlan01 vxlan01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vxlan01 vxlan01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vxlan01 vxlan01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan02.sh new file mode 100644 index 000000000..0f9926619 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vxlan02 vxlan02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vxlan02 vxlan02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vxlan02 vxlan02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan02_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan02_ipv6.sh new file mode 100644 index 000000000..672210758 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan02_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vxlan02_ipv6 vxlan02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vxlan02_ipv6 vxlan02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vxlan02_ipv6 vxlan02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_multi_03.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_multi_03.sh new file mode 100644 index 000000000..6a6386a49 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_multi_03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vxlan_ipv6_multi_03 vxlan03.sh -6 -d multi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vxlan_ipv6_multi_03 vxlan03.sh -6 -d multi + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vxlan_ipv6_multi_03 vxlan03.sh -6 -d multi failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_uni_03.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_uni_03.sh new file mode 100644 index 000000000..5bd008f65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_uni_03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vxlan_ipv6_uni_03 vxlan03.sh -6 -d uni +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vxlan_ipv6_uni_03 vxlan03.sh -6 -d uni + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vxlan_ipv6_uni_03 vxlan03.sh -6 -d uni failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_uni_04.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_uni_04.sh new file mode 100644 index 000000000..2ed2087c1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_ipv6_uni_04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vxlan_ipv6_uni_04 vxlan04.sh -6 -d uni +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vxlan_ipv6_uni_04 vxlan04.sh -6 -d uni + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vxlan_ipv6_uni_04 vxlan04.sh -6 -d uni failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_multi_03.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_multi_03.sh new file mode 100644 index 000000000..c40721fa5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_multi_03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vxlan_multi_03 vxlan03.sh -d multi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vxlan_multi_03 vxlan03.sh -d multi + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vxlan_multi_03 vxlan03.sh -d multi failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_uni_03.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_uni_03.sh new file mode 100644 index 000000000..b1f8f00be --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_uni_03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vxlan_uni_03 vxlan03.sh -d uni +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vxlan_uni_03 vxlan03.sh -d uni + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vxlan_uni_03 vxlan03.sh -d uni failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_uni_04.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_uni_04.sh new file mode 100644 index 000000000..6045baeca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_vxlan_uni_04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features vxlan_uni_04 vxlan04.sh -d uni +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s vxlan_uni_04 vxlan04.sh -d uni + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features vxlan_uni_04 vxlan04.sh -d uni failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard01.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard01.sh new file mode 100644 index 000000000..a01176bf5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features wireguard01 wireguard01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s wireguard01 wireguard01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features wireguard01 wireguard01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard01_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard01_ipv6.sh new file mode 100644 index 000000000..879102573 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard01_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features wireguard01_ipv6 wireguard01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s wireguard01_ipv6 wireguard01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features wireguard01_ipv6 wireguard01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard02.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard02.sh new file mode 100644 index 000000000..56d378649 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features wireguard02 wireguard02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s wireguard02 wireguard02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features wireguard02 wireguard02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard02_ipv6.sh b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard02_ipv6.sh new file mode 100644 index 000000000..4dbd477f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_features/oe_test_ltp_net_features_wireguard02_ipv6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_features wireguard02_ipv6 wireguard02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.features -s wireguard02_ipv6 wireguard02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.features wireguard02_ipv6 wireguard02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_dhcpd6.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_dhcpd6.sh new file mode 100644 index 000000000..4872fff7a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_dhcpd6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 dhcpd6 dhcpd_tests.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s dhcpd6 dhcpd_tests.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 dhcpd6 dhcpd_tests.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_dnsmasq6.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_dnsmasq6.sh new file mode 100644 index 000000000..71dd18530 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_dnsmasq6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 dnsmasq6 dnsmasq_tests.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s dnsmasq6 dnsmasq_tests.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 dnsmasq6 dnsmasq_tests.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ip6tables.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ip6tables.sh new file mode 100644 index 000000000..e25273b39 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ip6tables.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 ip6tables iptables01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s ip6tables iptables01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 ip6tables iptables01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ipneigh6_ip.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ipneigh6_ip.sh new file mode 100644 index 000000000..98d2d066c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ipneigh6_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 ipneigh6_ip ipneigh01.sh -6 -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s ipneigh6_ip ipneigh01.sh -6 -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 ipneigh6_ip ipneigh01.sh -6 -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_nft6.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_nft6.sh new file mode 100644 index 000000000..b82b5dded --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_nft6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 nft6 nft01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s nft6 nft01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 nft6 nft01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ping601.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ping601.sh new file mode 100644 index 000000000..438a9b9d8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ping601.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 ping601 ping01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s ping601 ping01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 ping601 ping01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ping602.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ping602.sh new file mode 100644 index 000000000..6f5c626cf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_ping602.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 ping602 ping02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s ping602 ping02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 ping602 ping02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_sendfile601.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_sendfile601.sh new file mode 100644 index 000000000..e8998056a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_sendfile601.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 sendfile601 sendfile01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s sendfile601 sendfile01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 sendfile601 sendfile01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_tcpdump601.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_tcpdump601.sh new file mode 100644 index 000000000..5d651c661 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_tcpdump601.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 tcpdump601 tcpdump01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s tcpdump601 tcpdump01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 tcpdump601 tcpdump01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_tracepath601.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_tracepath601.sh new file mode 100644 index 000000000..6afe585d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_tracepath601.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 tracepath601 tracepath01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s tracepath601 tracepath01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 tracepath601 tracepath01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_traceroute601.sh b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_traceroute601.sh new file mode 100644 index 000000000..1853c4bc7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6/oe_test_ltp_net_ipv6_traceroute601.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_ipv6 traceroute601 traceroute01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.ipv6 -s traceroute601 traceroute01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.ipv6 traceroute601 traceroute01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_01.sh b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_01.sh index 8408c3c21..59481a5a6 100644 --- a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_01.sh +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f net.ipv6_lib -s asapi_01 asapi_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "net.ipv6_lib asapi_01 asapi_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_02.sh b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_02.sh index e1318ccba..8345b272f 100644 --- a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_02.sh +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f net.ipv6_lib -s asapi_02 asapi_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "net.ipv6_lib asapi_02 asapi_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_03.sh b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_03.sh index 9be0545bb..d169fa717 100644 --- a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_03.sh +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f net.ipv6_lib -s asapi_03 asapi_03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "net.ipv6_lib asapi_03 asapi_03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_getaddrinfo_01.sh b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_getaddrinfo_01.sh index 8a81d14c9..c713c6d30 100644 --- a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_getaddrinfo_01.sh +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_getaddrinfo_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f net.ipv6_lib -s getaddrinfo_01 getaddrinfo_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "net.ipv6_lib getaddrinfo_01 getaddrinfo_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_01.sh b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_01.sh index 8bbba9104..4fee1c382 100644 --- a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_01.sh +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f net.ipv6_lib -s in6_01 in6_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "net.ipv6_lib in6_01 in6_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_02.sh b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_02.sh index b032aaf20..b1332339f 100644 --- a/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_02.sh +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f net.ipv6_lib -s in6_02 in6_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "net.ipv6_lib in6_02 in6_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_cmds.sh b/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_cmds.sh new file mode 100644 index 000000000..7f54eaf16 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_cmds.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_multicast mc_cmds mc_cmds.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.multicast -s mc_cmds mc_cmds.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.multicast mc_cmds mc_cmds.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_commo.sh b/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_commo.sh new file mode 100644 index 000000000..656a7bbab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_commo.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_multicast mc_commo mc_commo.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.multicast -s mc_commo mc_commo.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.multicast mc_commo mc_commo.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_member.sh b/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_member.sh new file mode 100644 index 000000000..a3530bd57 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_member.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_multicast mc_member mc_member.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.multicast -s mc_member mc_member.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.multicast mc_member mc_member.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_opts.sh b/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_opts.sh new file mode 100644 index 000000000..de0e7421c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_multicast/oe_test_ltp_net_multicast_mc_opts.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_multicast mc_opts mc_opts.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.multicast -s mc_opts mc_opts.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.multicast mc_opts mc_opts.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip4t.sh new file mode 100644 index 000000000..85e4040c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v30_ip4t fsx.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v30_ip4t fsx.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v30_ip4t fsx.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip4u.sh new file mode 100644 index 000000000..0964e3d21 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v30_ip4u fsx.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v30_ip4u fsx.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v30_ip4u fsx.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip6t.sh new file mode 100644 index 000000000..9f2566b43 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v30_ip6t fsx.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v30_ip6t fsx.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v30_ip6t fsx.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip6u.sh new file mode 100644 index 000000000..b4648b9e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v30_ip6u fsx.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v30_ip6u fsx.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v30_ip6u fsx.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v40_ip4t.sh new file mode 100644 index 000000000..cbe03dce1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v40_ip4t fsx.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v40_ip4t fsx.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v40_ip4t fsx.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v40_ip6t.sh new file mode 100644 index 000000000..61db26bc5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v40_ip6t fsx.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v40_ip6t fsx.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v40_ip6t fsx.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v41_ip4t.sh new file mode 100644 index 000000000..9bebf4d1f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v41_ip4t fsx.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v41_ip4t fsx.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v41_ip4t fsx.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v41_ip6t.sh new file mode 100644 index 000000000..9c4cabb3e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v41_ip6t fsx.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v41_ip6t fsx.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v41_ip6t fsx.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v42_ip4t.sh new file mode 100644 index 000000000..7bad9bc3a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v42_ip4t fsx.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v42_ip4t fsx.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v42_ip4t fsx.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v42_ip6t.sh new file mode 100644 index 000000000..2edd651f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_fsx_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs fsx_v42_ip6t fsx.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s fsx_v42_ip6t fsx.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs fsx_v42_ip6t fsx.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip4t.sh new file mode 100644 index 000000000..0b417964c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v30_ip4t nfs01.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v30_ip4t nfs01.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v30_ip4t nfs01.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip4u.sh new file mode 100644 index 000000000..88e1c64a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v30_ip4u nfs01.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v30_ip4u nfs01.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v30_ip4u nfs01.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip6t.sh new file mode 100644 index 000000000..bbbe71530 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v30_ip6t nfs01.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v30_ip6t nfs01.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v30_ip6t nfs01.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip6u.sh new file mode 100644 index 000000000..e8da4da06 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v30_ip6u nfs01.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v30_ip6u nfs01.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v30_ip6u nfs01.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v40_ip4t.sh new file mode 100644 index 000000000..1771e92e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v40_ip4t nfs01.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v40_ip4t nfs01.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v40_ip4t nfs01.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v40_ip6t.sh new file mode 100644 index 000000000..2ca7e8a92 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v40_ip6t nfs01.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v40_ip6t nfs01.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v40_ip6t nfs01.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v41_ip4t.sh new file mode 100644 index 000000000..ee50673af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v41_ip4t nfs01.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v41_ip4t nfs01.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v41_ip4t nfs01.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v41_ip6t.sh new file mode 100644 index 000000000..e7d1925f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v41_ip6t nfs01.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v41_ip6t nfs01.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v41_ip6t nfs01.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v42_ip4t.sh new file mode 100644 index 000000000..2b81339f3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v42_ip4t nfs01.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v42_ip4t nfs01.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v42_ip4t nfs01.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v42_ip6t.sh new file mode 100644 index 000000000..e4ce18572 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs01_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs01_v42_ip6t nfs01.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs01_v42_ip6t nfs01.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs01_v42_ip6t nfs01.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip4t.sh new file mode 100644 index 000000000..c70b84e55 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v30_ip4t nfs02.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v30_ip4t nfs02.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v30_ip4t nfs02.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip4u.sh new file mode 100644 index 000000000..e8736f648 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v30_ip4u nfs02.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v30_ip4u nfs02.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v30_ip4u nfs02.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip6t.sh new file mode 100644 index 000000000..23fe00593 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v30_ip6t nfs02.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v30_ip6t nfs02.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v30_ip6t nfs02.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip6u.sh new file mode 100644 index 000000000..1a0f1aab1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v30_ip6u nfs02.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v30_ip6u nfs02.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v30_ip6u nfs02.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v40_ip4t.sh new file mode 100644 index 000000000..5d0415d53 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v40_ip4t nfs02.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v40_ip4t nfs02.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v40_ip4t nfs02.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v40_ip6t.sh new file mode 100644 index 000000000..f64554a4e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v40_ip6t nfs02.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v40_ip6t nfs02.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v40_ip6t nfs02.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v41_ip4t.sh new file mode 100644 index 000000000..e88d6a520 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v41_ip4t nfs02.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v41_ip4t nfs02.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v41_ip4t nfs02.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v41_ip6t.sh new file mode 100644 index 000000000..69719d3f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v41_ip6t nfs02.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v41_ip6t nfs02.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v41_ip6t nfs02.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v42_ip4t.sh new file mode 100644 index 000000000..49fe140ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v42_ip4t nfs02.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v42_ip4t nfs02.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v42_ip4t nfs02.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v42_ip6t.sh new file mode 100644 index 000000000..98603eb5f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs02_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs02_v42_ip6t nfs02.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs02_v42_ip6t nfs02.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs02_v42_ip6t nfs02.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip4t.sh new file mode 100644 index 000000000..f8cda7fef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v30_ip4t nfs03.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v30_ip4t nfs03.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v30_ip4t nfs03.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip4u.sh new file mode 100644 index 000000000..935ef0db5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v30_ip4u nfs03.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v30_ip4u nfs03.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v30_ip4u nfs03.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip6t.sh new file mode 100644 index 000000000..5d79a2389 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v30_ip6t nfs03.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v30_ip6t nfs03.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v30_ip6t nfs03.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip6u.sh new file mode 100644 index 000000000..eef60cf22 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v30_ip6u nfs03.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v30_ip6u nfs03.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v30_ip6u nfs03.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v40_ip4t.sh new file mode 100644 index 000000000..7c86dc9e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v40_ip4t nfs03.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v40_ip4t nfs03.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v40_ip4t nfs03.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v40_ip6t.sh new file mode 100644 index 000000000..079d3bf08 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v40_ip6t nfs03.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v40_ip6t nfs03.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v40_ip6t nfs03.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v41_ip4t.sh new file mode 100644 index 000000000..8bf9593bf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v41_ip4t nfs03.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v41_ip4t nfs03.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v41_ip4t nfs03.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v41_ip6t.sh new file mode 100644 index 000000000..2045a7967 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v41_ip6t nfs03.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v41_ip6t nfs03.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v41_ip6t nfs03.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v42_ip4t.sh new file mode 100644 index 000000000..c4a92683f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v42_ip4t nfs03.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v42_ip4t nfs03.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v42_ip4t nfs03.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v42_ip6t.sh new file mode 100644 index 000000000..6bb2ecc30 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs03_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs03_v42_ip6t nfs03.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs03_v42_ip6t nfs03.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs03_v42_ip6t nfs03.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip4t.sh new file mode 100644 index 000000000..3315257db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v30_ip4t nfs04.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v30_ip4t nfs04.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v30_ip4t nfs04.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip4u.sh new file mode 100644 index 000000000..7f9e38bf2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v30_ip4u nfs04.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v30_ip4u nfs04.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v30_ip4u nfs04.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip6t.sh new file mode 100644 index 000000000..ead8becf4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v30_ip6t nfs04.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v30_ip6t nfs04.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v30_ip6t nfs04.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip6u.sh new file mode 100644 index 000000000..d2eab8eaa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v30_ip6u nfs04.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v30_ip6u nfs04.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v30_ip6u nfs04.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v40_ip4t.sh new file mode 100644 index 000000000..6c18f2fcb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v40_ip4t nfs04.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v40_ip4t nfs04.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v40_ip4t nfs04.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v40_ip6t.sh new file mode 100644 index 000000000..e0a73466d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v40_ip6t nfs04.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v40_ip6t nfs04.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v40_ip6t nfs04.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v41_ip4t.sh new file mode 100644 index 000000000..4eadca978 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v41_ip4t nfs04.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v41_ip4t nfs04.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v41_ip4t nfs04.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v41_ip6t.sh new file mode 100644 index 000000000..543f3b198 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v41_ip6t nfs04.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v41_ip6t nfs04.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v41_ip6t nfs04.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v42_ip4t.sh new file mode 100644 index 000000000..0d1d428f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v42_ip4t nfs04.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v42_ip4t nfs04.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v42_ip4t nfs04.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v42_ip6t.sh new file mode 100644 index 000000000..fe51c8164 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs04_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs04_v42_ip6t nfs04.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs04_v42_ip6t nfs04.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs04_v42_ip6t nfs04.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip4t.sh new file mode 100644 index 000000000..b2cf5e71c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v30_ip4t nfs05.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v30_ip4t nfs05.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v30_ip4t nfs05.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip4u.sh new file mode 100644 index 000000000..382b5569f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v30_ip4u nfs05.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v30_ip4u nfs05.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v30_ip4u nfs05.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip6t.sh new file mode 100644 index 000000000..92a014e52 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v30_ip6t nfs05.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v30_ip6t nfs05.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v30_ip6t nfs05.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip6u.sh new file mode 100644 index 000000000..1f563ccd0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v30_ip6u nfs05.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v30_ip6u nfs05.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v30_ip6u nfs05.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v40_ip4t.sh new file mode 100644 index 000000000..3975d4a2a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v40_ip4t nfs05.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v40_ip4t nfs05.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v40_ip4t nfs05.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v40_ip6t.sh new file mode 100644 index 000000000..c84c725c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v40_ip6t nfs05.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v40_ip6t nfs05.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v40_ip6t nfs05.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v41_ip4t.sh new file mode 100644 index 000000000..eac95ce79 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v41_ip4t nfs05.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v41_ip4t nfs05.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v41_ip4t nfs05.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v41_ip6t.sh new file mode 100644 index 000000000..5023a8b14 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v41_ip6t nfs05.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v41_ip6t nfs05.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v41_ip6t nfs05.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v42_ip4t.sh new file mode 100644 index 000000000..6196dce25 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v42_ip4t nfs05.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v42_ip4t nfs05.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v42_ip4t nfs05.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v42_ip6t.sh new file mode 100644 index 000000000..243efb3bf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs05_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs05_v42_ip6t nfs05.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs05_v42_ip6t nfs05.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs05_v42_ip6t nfs05.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_v30_v40_ip4.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_v30_v40_ip4.sh new file mode 100644 index 000000000..1be6be244 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_v30_v40_ip4.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs06_v30_v40_ip4 nfs06.sh -v "3,3,3,4,4,4" -t "udp,udp,tcp,tcp,tcp,tcp" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs06_v30_v40_ip4 nfs06.sh -v "3,3,3,4,4,4" -t "udp,udp,tcp,tcp,tcp,tcp" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs06_v30_v40_ip4 nfs06.sh -v "3,3,3,4,4,4" -t "udp,udp,tcp,tcp,tcp,tcp" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_v4x_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_v4x_ip6t.sh new file mode 100644 index 000000000..58a00df78 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_v4x_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs06_v4x_ip6t nfs06.sh -6 -v "4,4.1,4.1,4.2,4.2,4.2" -t "tcp,tcp,tcp,tcp,tcp,tcp" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs06_v4x_ip6t nfs06.sh -6 -v "4,4.1,4.1,4.2,4.2,4.2" -t "tcp,tcp,tcp,tcp,tcp,tcp" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs06_v4x_ip6t nfs06.sh -6 -v "4,4.1,4.1,4.2,4.2,4.2" -t "tcp,tcp,tcp,tcp,tcp,tcp" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_vall_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_vall_ip4t.sh new file mode 100644 index 000000000..7e82b1c51 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs06_vall_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs06_vall_ip4t nfs06.sh -v "3,4,4.1,4.2,4.2,4.2" -t "tcp,tcp,tcp,tcp,tcp,tcp" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs06_vall_ip4t nfs06.sh -v "3,4,4.1,4.2,4.2,4.2" -t "tcp,tcp,tcp,tcp,tcp,tcp" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs06_vall_ip4t nfs06.sh -v "3,4,4.1,4.2,4.2,4.2" -t "tcp,tcp,tcp,tcp,tcp,tcp" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip4t.sh new file mode 100644 index 000000000..5dec4751c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v30_ip4t nfs07.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v30_ip4t nfs07.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v30_ip4t nfs07.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip4u.sh new file mode 100644 index 000000000..20d5f9575 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v30_ip4u nfs07.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v30_ip4u nfs07.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v30_ip4u nfs07.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip6t.sh new file mode 100644 index 000000000..c21023b9f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v30_ip6t nfs07.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v30_ip6t nfs07.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v30_ip6t nfs07.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip6u.sh new file mode 100644 index 000000000..f021489c6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v30_ip6u nfs07.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v30_ip6u nfs07.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v30_ip6u nfs07.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v40_ip4t.sh new file mode 100644 index 000000000..d05cf2599 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v40_ip4t nfs07.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v40_ip4t nfs07.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v40_ip4t nfs07.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v40_ip6t.sh new file mode 100644 index 000000000..20c354bf1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v40_ip6t nfs07.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v40_ip6t nfs07.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v40_ip6t nfs07.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v41_ip4t.sh new file mode 100644 index 000000000..7d72c120f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v41_ip4t nfs07.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v41_ip4t nfs07.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v41_ip4t nfs07.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v41_ip6t.sh new file mode 100644 index 000000000..7566db56d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v41_ip6t nfs07.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v41_ip6t nfs07.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v41_ip6t nfs07.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v42_ip4t.sh new file mode 100644 index 000000000..0f711f681 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v42_ip4t nfs07.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v42_ip4t nfs07.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v42_ip4t nfs07.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v42_ip6t.sh new file mode 100644 index 000000000..8b5c5a2cc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs07_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs07_v42_ip6t nfs07.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs07_v42_ip6t nfs07.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs07_v42_ip6t nfs07.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip4t.sh new file mode 100644 index 000000000..6879a5b08 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v30_ip4t nfs08.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v30_ip4t nfs08.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v30_ip4t nfs08.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip4u.sh new file mode 100644 index 000000000..1438bfb40 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v30_ip4u nfs08.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v30_ip4u nfs08.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v30_ip4u nfs08.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip6t.sh new file mode 100644 index 000000000..7da7ef609 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v30_ip6t nfs08.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v30_ip6t nfs08.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v30_ip6t nfs08.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip6u.sh new file mode 100644 index 000000000..31c1286aa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v30_ip6u nfs08.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v30_ip6u nfs08.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v30_ip6u nfs08.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v40_ip4t.sh new file mode 100644 index 000000000..dd55df88f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v40_ip4t nfs08.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v40_ip4t nfs08.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v40_ip4t nfs08.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v40_ip6t.sh new file mode 100644 index 000000000..b2b24ac10 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v40_ip6t nfs08.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v40_ip6t nfs08.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v40_ip6t nfs08.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v41_ip4t.sh new file mode 100644 index 000000000..17f8e31fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v41_ip4t nfs08.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v41_ip4t nfs08.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v41_ip4t nfs08.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v41_ip6t.sh new file mode 100644 index 000000000..a0fc092f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v41_ip6t nfs08.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v41_ip6t nfs08.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v41_ip6t nfs08.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v42_ip4t.sh new file mode 100644 index 000000000..e167a9b1c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v42_ip4t nfs08.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v42_ip4t nfs08.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v42_ip4t nfs08.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v42_ip6t.sh new file mode 100644 index 000000000..17e1fca86 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs08_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs08_v42_ip6t nfs08.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs08_v42_ip6t nfs08.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs08_v42_ip6t nfs08.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip4t.sh new file mode 100644 index 000000000..609356f5d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v30_ip4t nfs09.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v30_ip4t nfs09.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v30_ip4t nfs09.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip4u.sh new file mode 100644 index 000000000..360b449d8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v30_ip4u nfs09.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v30_ip4u nfs09.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v30_ip4u nfs09.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip6t.sh new file mode 100644 index 000000000..236702f12 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v30_ip6t nfs09.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v30_ip6t nfs09.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v30_ip6t nfs09.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip6u.sh new file mode 100644 index 000000000..8dc924455 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v30_ip6u nfs09.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v30_ip6u nfs09.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v30_ip6u nfs09.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v40_ip4t.sh new file mode 100644 index 000000000..a366cd81b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v40_ip4t nfs09.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v40_ip4t nfs09.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v40_ip4t nfs09.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v40_ip6t.sh new file mode 100644 index 000000000..9232f3207 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v40_ip6t nfs09.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v40_ip6t nfs09.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v40_ip6t nfs09.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v41_ip4t.sh new file mode 100644 index 000000000..739f85687 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v41_ip4t nfs09.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v41_ip4t nfs09.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v41_ip4t nfs09.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v41_ip6t.sh new file mode 100644 index 000000000..3bc8c2da8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v41_ip6t nfs09.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v41_ip6t nfs09.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v41_ip6t nfs09.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v42_ip4t.sh new file mode 100644 index 000000000..0c20041c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v42_ip4t nfs09.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v42_ip4t nfs09.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v42_ip4t nfs09.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v42_ip6t.sh new file mode 100644 index 000000000..87ec23c8c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfs09_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfs09_v42_ip6t nfs09.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfs09_v42_ip6t nfs09.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfs09_v42_ip6t nfs09.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip4t.sh new file mode 100644 index 000000000..a7c52dade --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v30_ip4t nfslock01.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v30_ip4t nfslock01.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v30_ip4t nfslock01.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip4u.sh new file mode 100644 index 000000000..417bb21e6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v30_ip4u nfslock01.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v30_ip4u nfslock01.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v30_ip4u nfslock01.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip6t.sh new file mode 100644 index 000000000..e1041375d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v30_ip6t nfslock01.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v30_ip6t nfslock01.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v30_ip6t nfslock01.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip6u.sh new file mode 100644 index 000000000..94259921f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v30_ip6u nfslock01.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v30_ip6u nfslock01.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v30_ip6u nfslock01.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v40_ip4t.sh new file mode 100644 index 000000000..47cb23cb5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v40_ip4t nfslock01.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v40_ip4t nfslock01.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v40_ip4t nfslock01.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v40_ip6t.sh new file mode 100644 index 000000000..8fc6106a8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v40_ip6t nfslock01.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v40_ip6t nfslock01.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v40_ip6t nfslock01.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v41_ip4t.sh new file mode 100644 index 000000000..1a344a088 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v41_ip4t nfslock01.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v41_ip4t nfslock01.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v41_ip4t nfslock01.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v41_ip6t.sh new file mode 100644 index 000000000..f8c09baf3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v41_ip6t nfslock01.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v41_ip6t nfslock01.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v41_ip6t nfslock01.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v42_ip4t.sh new file mode 100644 index 000000000..75107d878 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v42_ip4t nfslock01.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v42_ip4t nfslock01.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v42_ip4t nfslock01.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v42_ip6t.sh new file mode 100644 index 000000000..bf57189ba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfslock01_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfslock01_v42_ip6t nfslock01.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfslock01_v42_ip6t nfslock01.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfslock01_v42_ip6t nfslock01.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip4t.sh new file mode 100644 index 000000000..c11cdff6c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v30_ip4t nfsstat01.sh -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v30_ip4t nfsstat01.sh -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v30_ip4t nfsstat01.sh -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip4u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip4u.sh new file mode 100644 index 000000000..252d9b849 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip4u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v30_ip4u nfsstat01.sh -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v30_ip4u nfsstat01.sh -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v30_ip4u nfsstat01.sh -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip6t.sh new file mode 100644 index 000000000..df042c16e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v30_ip6t nfsstat01.sh -6 -v 3 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v30_ip6t nfsstat01.sh -6 -v 3 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v30_ip6t nfsstat01.sh -6 -v 3 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip6u.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip6u.sh new file mode 100644 index 000000000..d127d9592 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v30_ip6u.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v30_ip6u nfsstat01.sh -6 -v 3 -t udp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v30_ip6u nfsstat01.sh -6 -v 3 -t udp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v30_ip6u nfsstat01.sh -6 -v 3 -t udp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v40_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v40_ip4t.sh new file mode 100644 index 000000000..826f38628 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v40_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v40_ip4t nfsstat01.sh -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v40_ip4t nfsstat01.sh -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v40_ip4t nfsstat01.sh -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v40_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v40_ip6t.sh new file mode 100644 index 000000000..c931725f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v40_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v40_ip6t nfsstat01.sh -6 -v 4 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v40_ip6t nfsstat01.sh -6 -v 4 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v40_ip6t nfsstat01.sh -6 -v 4 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v41_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v41_ip4t.sh new file mode 100644 index 000000000..01cbbe73b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v41_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v41_ip4t nfsstat01.sh -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v41_ip4t nfsstat01.sh -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v41_ip4t nfsstat01.sh -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v41_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v41_ip6t.sh new file mode 100644 index 000000000..0b77e3fc7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v41_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v41_ip6t nfsstat01.sh -6 -v 4.1 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v41_ip6t nfsstat01.sh -6 -v 4.1 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v41_ip6t nfsstat01.sh -6 -v 4.1 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v42_ip4t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v42_ip4t.sh new file mode 100644 index 000000000..22bd1d2f2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v42_ip4t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v42_ip4t nfsstat01.sh -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v42_ip4t nfsstat01.sh -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v42_ip4t nfsstat01.sh -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v42_ip6t.sh b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v42_ip6t.sh new file mode 100644 index 000000000..7d74017c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_nfs/oe_test_ltp_net_nfs_nfsstat01_v42_ip6t.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_nfs nfsstat01_v42_ip6t nfsstat01.sh -6 -v 4.2 -t tcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.nfs -s nfsstat01_v42_ip6t nfsstat01.sh -6 -v 4.2 -t tcp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.nfs nfsstat01_v42_ip6t nfsstat01.sh -6 -v 4.2 -t tcp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc01.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc01.sh new file mode 100644 index 000000000..1deccc5b1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc01 rpc01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc01 rpc01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc01 rpc01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_auth_destroy.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_auth_destroy.sh new file mode 100644 index 000000000..0dad25445 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_auth_destroy.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_auth_destroy rpc_test.sh -c rpc_auth_destroy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_auth_destroy rpc_test.sh -c rpc_auth_destroy + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_auth_destroy rpc_test.sh -c rpc_auth_destroy failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authnone_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authnone_create.sh new file mode 100644 index 000000000..bc3700192 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authnone_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_authnone_create rpc_test.sh -c rpc_authnone_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_authnone_create rpc_test.sh -c rpc_authnone_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_authnone_create rpc_test.sh -c rpc_authnone_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authunix_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authunix_create.sh new file mode 100644 index 000000000..c136a3c5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authunix_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_authunix_create rpc_test.sh -c rpc_authunix_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_authunix_create rpc_test.sh -c rpc_authunix_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_authunix_create rpc_test.sh -c rpc_authunix_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authunix_create_default.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authunix_create_default.sh new file mode 100644 index 000000000..45add083a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_authunix_create_default.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_authunix_create_default rpc_test.sh -c rpc_authunix_create_default +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_authunix_create_default rpc_test.sh -c rpc_authunix_create_default + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_authunix_create_default rpc_test.sh -c rpc_authunix_create_default failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_callrpc.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_callrpc.sh new file mode 100644 index 000000000..e8c27b3f3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_callrpc.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_callrpc rpc_test.sh -s rpc_svc_1 -c rpc_callrpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_callrpc rpc_test.sh -s rpc_svc_1 -c rpc_callrpc + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_callrpc rpc_test.sh -s rpc_svc_1 -c rpc_callrpc failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_broadcast.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_broadcast.sh new file mode 100644 index 000000000..52d2e830c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_broadcast.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_broadcast rpc_test.sh -s rpc_svc_1 -c rpc_clnt_broadcast +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_broadcast rpc_test.sh -s rpc_svc_1 -c rpc_clnt_broadcast + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_broadcast rpc_test.sh -s rpc_svc_1 -c rpc_clnt_broadcast failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_call.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_call.sh new file mode 100644 index 000000000..85a313e9a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_call.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_call rpc_test.sh -s rpc_svc_1 -c rpc_clnt_call +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_call rpc_test.sh -s rpc_svc_1 -c rpc_clnt_call + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_call rpc_test.sh -s rpc_svc_1 -c rpc_clnt_call failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_control.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_control.sh new file mode 100644 index 000000000..1fcc444fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_control.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_control rpc_test.sh -s rpc_svc_1 -c rpc_clnt_control +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_control rpc_test.sh -s rpc_svc_1 -c rpc_clnt_control + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_control rpc_test.sh -s rpc_svc_1 -c rpc_clnt_control failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_create.sh new file mode 100644 index 000000000..89f39cb2b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_create rpc_test.sh -s rpc_svc_1 -c rpc_clnt_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_create rpc_test.sh -s rpc_svc_1 -c rpc_clnt_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_create rpc_test.sh -s rpc_svc_1 -c rpc_clnt_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_destroy.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_destroy.sh new file mode 100644 index 000000000..80eb075d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_destroy.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_destroy rpc_test.sh -s rpc_svc_1 -c rpc_clnt_destroy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_destroy rpc_test.sh -s rpc_svc_1 -c rpc_clnt_destroy + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_destroy rpc_test.sh -s rpc_svc_1 -c rpc_clnt_destroy failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_freeres.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_freeres.sh new file mode 100644 index 000000000..0dc125be6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_freeres.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_freeres rpc_test.sh -s rpc_svc_1 -c rpc_clnt_freeres +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_freeres rpc_test.sh -s rpc_svc_1 -c rpc_clnt_freeres + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_freeres rpc_test.sh -s rpc_svc_1 -c rpc_clnt_freeres failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_geterr.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_geterr.sh new file mode 100644 index 000000000..85ac5b4f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_geterr.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_geterr rpc_test.sh -s rpc_svc_1 -c rpc_clnt_geterr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_geterr rpc_test.sh -s rpc_svc_1 -c rpc_clnt_geterr + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_geterr rpc_test.sh -s rpc_svc_1 -c rpc_clnt_geterr failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_pcreateerror.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_pcreateerror.sh new file mode 100644 index 000000000..3c853fca2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_pcreateerror.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_pcreateerror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_pcreateerror +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_pcreateerror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_pcreateerror + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_pcreateerror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_pcreateerror failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_perrno.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_perrno.sh new file mode 100644 index 000000000..babb2b007 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_perrno.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_perrno rpc_test.sh -s rpc_svc_1 -c rpc_clnt_perrno +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_perrno rpc_test.sh -s rpc_svc_1 -c rpc_clnt_perrno + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_perrno rpc_test.sh -s rpc_svc_1 -c rpc_clnt_perrno failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_perror.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_perror.sh new file mode 100644 index 000000000..ce33a2050 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_perror.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_perror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_perror +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_perror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_perror + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_perror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_perror failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_spcreateerror.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_spcreateerror.sh new file mode 100644 index 000000000..ceae2cf98 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_spcreateerror.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_spcreateerror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_spcreateerror +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_spcreateerror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_spcreateerror + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_spcreateerror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_spcreateerror failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_sperrno.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_sperrno.sh new file mode 100644 index 000000000..642d48ac6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_sperrno.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_sperrno rpc_test.sh -s rpc_svc_1 -c rpc_clnt_sperrno +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_sperrno rpc_test.sh -s rpc_svc_1 -c rpc_clnt_sperrno + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_sperrno rpc_test.sh -s rpc_svc_1 -c rpc_clnt_sperrno failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_sperror.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_sperror.sh new file mode 100644 index 000000000..3006c6533 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnt_sperror.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnt_sperror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_sperror +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnt_sperror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_sperror + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnt_sperror rpc_test.sh -s rpc_svc_1 -c rpc_clnt_sperror failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntraw_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntraw_create.sh new file mode 100644 index 000000000..4067601e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntraw_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clntraw_create rpc_test.sh -s rpc_svc_1 -c rpc_clntraw_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clntraw_create rpc_test.sh -s rpc_svc_1 -c rpc_clntraw_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clntraw_create rpc_test.sh -s rpc_svc_1 -c rpc_clntraw_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnttcp_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnttcp_create.sh new file mode 100644 index 000000000..234472198 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clnttcp_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clnttcp_create rpc_test.sh -s rpc_svc_1 -c rpc_clnttcp_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clnttcp_create rpc_test.sh -s rpc_svc_1 -c rpc_clnttcp_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clnttcp_create rpc_test.sh -s rpc_svc_1 -c rpc_clnttcp_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntudp_bufcreate.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntudp_bufcreate.sh new file mode 100644 index 000000000..4cd1da13f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntudp_bufcreate.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clntudp_bufcreate rpc_test.sh -s rpc_svc_1 -c rpc_clntudp_bufcreate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clntudp_bufcreate rpc_test.sh -s rpc_svc_1 -c rpc_clntudp_bufcreate + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clntudp_bufcreate rpc_test.sh -s rpc_svc_1 -c rpc_clntudp_bufcreate failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntudp_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntudp_create.sh new file mode 100644 index 000000000..ff09d76d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_clntudp_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_clntudp_create rpc_test.sh -s rpc_svc_1 -c rpc_clntudp_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_clntudp_create rpc_test.sh -s rpc_svc_1 -c rpc_clntudp_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_clntudp_create rpc_test.sh -s rpc_svc_1 -c rpc_clntudp_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_get_myaddress.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_get_myaddress.sh new file mode 100644 index 000000000..60f825481 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_get_myaddress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_get_myaddress rpc_test.sh -c rpc_get_myaddress +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_get_myaddress rpc_test.sh -c rpc_get_myaddress + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_get_myaddress rpc_test.sh -c rpc_get_myaddress failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_getmaps.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_getmaps.sh new file mode 100644 index 000000000..71543570f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_getmaps.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_pmap_getmaps rpc_test.sh -s rpc_svc_1 -c rpc_pmap_getmaps +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_pmap_getmaps rpc_test.sh -s rpc_svc_1 -c rpc_pmap_getmaps + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_pmap_getmaps rpc_test.sh -s rpc_svc_1 -c rpc_pmap_getmaps failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_getport.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_getport.sh new file mode 100644 index 000000000..3226d5a37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_getport.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_pmap_getport rpc_test.sh -s rpc_svc_1 -c rpc_pmap_getport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_pmap_getport rpc_test.sh -s rpc_svc_1 -c rpc_pmap_getport + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_pmap_getport rpc_test.sh -s rpc_svc_1 -c rpc_pmap_getport failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_rmtcall.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_rmtcall.sh new file mode 100644 index 000000000..d7d2b6b4b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_rmtcall.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_pmap_rmtcall rpc_test.sh -s rpc_svc_1 -c rpc_pmap_rmtcall +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_pmap_rmtcall rpc_test.sh -s rpc_svc_1 -c rpc_pmap_rmtcall + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_pmap_rmtcall rpc_test.sh -s rpc_svc_1 -c rpc_pmap_rmtcall failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_set.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_set.sh new file mode 100644 index 000000000..a95ec415b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_set.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_pmap_set rpc_test.sh -c rpc_pmap_set +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_pmap_set rpc_test.sh -c rpc_pmap_set + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_pmap_set rpc_test.sh -c rpc_pmap_set failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_unset.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_unset.sh new file mode 100644 index 000000000..1cc948ddc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_pmap_unset.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_pmap_unset rpc_test.sh -c rpc_pmap_unset +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_pmap_unset rpc_test.sh -c rpc_pmap_unset + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_pmap_unset rpc_test.sh -c rpc_pmap_unset failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_registerrpc.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_registerrpc.sh new file mode 100644 index 000000000..fbcba2f42 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_registerrpc.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_registerrpc rpc_test.sh -c rpc_registerrpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_registerrpc rpc_test.sh -c rpc_registerrpc + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_registerrpc rpc_test.sh -c rpc_registerrpc failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_destroy.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_destroy.sh new file mode 100644 index 000000000..40d681e6d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_destroy.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svc_destroy rpc_test.sh -c rpc_svc_destroy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svc_destroy rpc_test.sh -c rpc_svc_destroy + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svc_destroy rpc_test.sh -c rpc_svc_destroy failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_freeargs.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_freeargs.sh new file mode 100644 index 000000000..cd765f362 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_freeargs.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svc_freeargs rpc_test.sh -s rpc_svc_1 -c rpc_svc_freeargs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svc_freeargs rpc_test.sh -s rpc_svc_1 -c rpc_svc_freeargs + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svc_freeargs rpc_test.sh -s rpc_svc_1 -c rpc_svc_freeargs failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_getargs.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_getargs.sh new file mode 100644 index 000000000..be3ed06fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_getargs.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svc_getargs rpc_test.sh -s rpc_svc_getargs -c rpc_svc_getargs_client +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svc_getargs rpc_test.sh -s rpc_svc_getargs -c rpc_svc_getargs_client + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svc_getargs rpc_test.sh -s rpc_svc_getargs -c rpc_svc_getargs_client failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_getcaller.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_getcaller.sh new file mode 100644 index 000000000..5ab53aef2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_getcaller.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svc_getcaller rpc_test.sh -s rpc_svc_1 -c rpc_svc_getcaller +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svc_getcaller rpc_test.sh -s rpc_svc_1 -c rpc_svc_getcaller + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svc_getcaller rpc_test.sh -s rpc_svc_1 -c rpc_svc_getcaller failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_register.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_register.sh new file mode 100644 index 000000000..b7a336eb5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_register.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svc_register rpc_test.sh -c rpc_svc_register +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svc_register rpc_test.sh -c rpc_svc_register + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svc_register rpc_test.sh -c rpc_svc_register failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_sendreply.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_sendreply.sh new file mode 100644 index 000000000..7b2102c63 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_sendreply.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svc_sendreply rpc_test.sh -s rpc_svc_sendreply -c rpc_svc_sendreply_client +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svc_sendreply rpc_test.sh -s rpc_svc_sendreply -c rpc_svc_sendreply_client + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svc_sendreply rpc_test.sh -s rpc_svc_sendreply -c rpc_svc_sendreply_client failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_unregister.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_unregister.sh new file mode 100644 index 000000000..4e3a8f1e7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svc_unregister.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svc_unregister rpc_test.sh -c rpc_svc_unregister +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svc_unregister rpc_test.sh -c rpc_svc_unregister + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svc_unregister rpc_test.sh -c rpc_svc_unregister failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_auth.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_auth.sh new file mode 100644 index 000000000..b0f58a83d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_auth.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcerr_auth rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_auth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcerr_auth rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_auth + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcerr_auth rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_auth failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_noproc.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_noproc.sh new file mode 100644 index 000000000..134830c5f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_noproc.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcerr_noproc rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_noproc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcerr_noproc rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_noproc + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcerr_noproc rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_noproc failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_noprog.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_noprog.sh new file mode 100644 index 000000000..63b30ce20 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_noprog.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcerr_noprog rpc_test.sh -c rpc_svcerr_noprog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcerr_noprog rpc_test.sh -c rpc_svcerr_noprog + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcerr_noprog rpc_test.sh -c rpc_svcerr_noprog failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_progvers.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_progvers.sh new file mode 100644 index 000000000..6b5818803 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_progvers.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcerr_progvers rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_progvers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcerr_progvers rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_progvers + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcerr_progvers rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_progvers failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_systemerr.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_systemerr.sh new file mode 100644 index 000000000..7aba90e7d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_systemerr.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcerr_systemerr rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_systemerr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcerr_systemerr rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_systemerr + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcerr_systemerr rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_systemerr failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_weakauth.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_weakauth.sh new file mode 100644 index 000000000..e03d7c38e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcerr_weakauth.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcerr_weakauth rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_weakauth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcerr_weakauth rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_weakauth + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcerr_weakauth rpc_test.sh -s rpc_svc_1 -c rpc_svcerr_weakauth failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcfd_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcfd_create.sh new file mode 100644 index 000000000..2a4824f43 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcfd_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcfd_create rpc_test.sh -c rpc_svcfd_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcfd_create rpc_test.sh -c rpc_svcfd_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcfd_create rpc_test.sh -c rpc_svcfd_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcraw_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcraw_create.sh new file mode 100644 index 000000000..1d8842996 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcraw_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcraw_create rpc_test.sh -c rpc_svcraw_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcraw_create rpc_test.sh -c rpc_svcraw_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcraw_create rpc_test.sh -c rpc_svcraw_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svctcp_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svctcp_create.sh new file mode 100644 index 000000000..1a23071f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svctcp_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svctcp_create rpc_test.sh -c rpc_svctcp_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svctcp_create rpc_test.sh -c rpc_svctcp_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svctcp_create rpc_test.sh -c rpc_svctcp_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcudp_bufcreate.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcudp_bufcreate.sh new file mode 100644 index 000000000..e1db3b156 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcudp_bufcreate.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcudp_bufcreate rpc_test.sh -c rpc_svcudp_bufcreate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcudp_bufcreate rpc_test.sh -c rpc_svcudp_bufcreate + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcudp_bufcreate rpc_test.sh -c rpc_svcudp_bufcreate failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcudp_create.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcudp_create.sh new file mode 100644 index 000000000..e9cf726da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_svcudp_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_svcudp_create rpc_test.sh -c rpc_svcudp_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_svcudp_create rpc_test.sh -c rpc_svcudp_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_svcudp_create rpc_test.sh -c rpc_svcudp_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_xprt_register.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_xprt_register.sh new file mode 100644 index 000000000..2148f569c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_xprt_register.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_xprt_register rpc_test.sh -c rpc_xprt_register +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_xprt_register rpc_test.sh -c rpc_xprt_register + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_xprt_register rpc_test.sh -c rpc_xprt_register failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_xprt_unregister.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_xprt_unregister.sh new file mode 100644 index 000000000..cfe7e1831 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpc_xprt_unregister.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpc_xprt_unregister rpc_test.sh -c rpc_xprt_unregister +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpc_xprt_unregister rpc_test.sh -c rpc_xprt_unregister + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpc_xprt_unregister rpc_test.sh -c rpc_xprt_unregister failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpcinfo.sh b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpcinfo.sh new file mode 100644 index 000000000..5ddc15574 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_rpc_tests/oe_test_ltp_net_rpc_tests_rpcinfo.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_rpc_tests rpcinfo rpcinfo01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.rpc_tests -s rpcinfo rpcinfo01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.rpc_tests rpcinfo rpcinfo01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_accept_close.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_accept_close.sh new file mode 100644 index 000000000..3146b3707 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_accept_close.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_accept_close test_1_to_1_accept_close +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_accept_close test_1_to_1_accept_close + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_accept_close test_1_to_1_accept_close failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_addrs.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_addrs.sh new file mode 100644 index 000000000..68d4e1e0f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_addrs.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_addrs test_1_to_1_addrs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_addrs test_1_to_1_addrs + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_addrs test_1_to_1_addrs failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_connect.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_connect.sh new file mode 100644 index 000000000..f2edbf1f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_connect.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_connect test_1_to_1_connect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_connect test_1_to_1_connect + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_connect test_1_to_1_connect failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_connectx.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_connectx.sh new file mode 100644 index 000000000..0bc2e6de2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_connectx.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_connectx test_1_to_1_connectx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_connectx test_1_to_1_connectx + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_connectx test_1_to_1_connectx failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_events.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_events.sh new file mode 100644 index 000000000..175a297d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_events.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_events test_1_to_1_events +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_events test_1_to_1_events + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_events test_1_to_1_events failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_initmsg_connect.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_initmsg_connect.sh new file mode 100644 index 000000000..fc0e2ebb9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_initmsg_connect.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_initmsg_connect test_1_to_1_initmsg_connect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_initmsg_connect test_1_to_1_initmsg_connect + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_initmsg_connect test_1_to_1_initmsg_connect failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_nonblock.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_nonblock.sh new file mode 100644 index 000000000..6c9da29d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_nonblock.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_nonblock test_1_to_1_nonblock +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_nonblock test_1_to_1_nonblock + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_nonblock test_1_to_1_nonblock failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_recvfrom.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_recvfrom.sh new file mode 100644 index 000000000..6eff78dfa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_recvfrom.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_recvfrom test_1_to_1_recvfrom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_recvfrom test_1_to_1_recvfrom + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_recvfrom test_1_to_1_recvfrom failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_recvmsg.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_recvmsg.sh new file mode 100644 index 000000000..9d04d15b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_recvmsg.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_recvmsg test_1_to_1_recvmsg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_recvmsg test_1_to_1_recvmsg + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_recvmsg test_1_to_1_recvmsg failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_rtoinfo.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_rtoinfo.sh new file mode 100644 index 000000000..3e7fab107 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_rtoinfo.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_rtoinfo test_1_to_1_rtoinfo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_rtoinfo test_1_to_1_rtoinfo + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_rtoinfo test_1_to_1_rtoinfo failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_send.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_send.sh new file mode 100644 index 000000000..fe9e826b3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_send.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_send test_1_to_1_send +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_send test_1_to_1_send + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_send test_1_to_1_send failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sendmsg.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sendmsg.sh new file mode 100644 index 000000000..40c02af37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sendmsg.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_sendmsg test_1_to_1_sendmsg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_sendmsg test_1_to_1_sendmsg + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_sendmsg test_1_to_1_sendmsg failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sendto.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sendto.sh new file mode 100644 index 000000000..c0c4ddab4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sendto.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_sendto test_1_to_1_sendto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_sendto test_1_to_1_sendto + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_sendto test_1_to_1_sendto failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_shutdown.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_shutdown.sh new file mode 100644 index 000000000..fb4ebc39e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_shutdown.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_shutdown test_1_to_1_shutdown +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_shutdown test_1_to_1_shutdown + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_shutdown test_1_to_1_shutdown failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_socket_bind_listen.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_socket_bind_listen.sh new file mode 100644 index 000000000..2ec90abc6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_socket_bind_listen.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_socket_bind_listen test_1_to_1_socket_bind_listen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_socket_bind_listen test_1_to_1_socket_bind_listen + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_socket_bind_listen test_1_to_1_socket_bind_listen failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sockopt.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sockopt.sh new file mode 100644 index 000000000..0a6dd0f70 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_sockopt.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_sockopt test_1_to_1_sockopt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_sockopt test_1_to_1_sockopt + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_sockopt test_1_to_1_sockopt failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_threads.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_threads.sh new file mode 100644 index 000000000..6425c946b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_1_to_1_threads.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_1_to_1_threads test_1_to_1_threads +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_1_to_1_threads test_1_to_1_threads + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_1_to_1_threads test_1_to_1_threads failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_assoc_abort.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_assoc_abort.sh new file mode 100644 index 000000000..2f06b8014 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_assoc_abort.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_assoc_abort test_assoc_abort +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_assoc_abort test_assoc_abort + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_assoc_abort test_assoc_abort failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_assoc_shutdown.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_assoc_shutdown.sh new file mode 100644 index 000000000..af935dd8e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_assoc_shutdown.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_assoc_shutdown test_assoc_shutdown +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_assoc_shutdown test_assoc_shutdown + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_assoc_shutdown test_assoc_shutdown failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_autoclose.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_autoclose.sh new file mode 100644 index 000000000..cd30b328f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_autoclose.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_autoclose test_autoclose +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_autoclose test_autoclose + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_autoclose test_autoclose failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_basic.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_basic.sh new file mode 100644 index 000000000..8b6a6770d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_basic.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_basic test_basic +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_basic test_basic + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_basic test_basic failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_basic_v6.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_basic_v6.sh new file mode 100644 index 000000000..b48656145 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_basic_v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_basic_v6 test_basic_v6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_basic_v6 test_basic_v6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_basic_v6 test_basic_v6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_connect.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_connect.sh new file mode 100644 index 000000000..e3889be32 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_connect.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_connect test_connect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_connect test_connect + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_connect test_connect failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_connectx.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_connectx.sh new file mode 100644 index 000000000..0575d1300 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_connectx.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_connectx test_connectx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_connectx test_connectx + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_connectx test_connectx failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_fragments.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_fragments.sh new file mode 100644 index 000000000..768e368a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_fragments.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_fragments test_fragments +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_fragments test_fragments + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_fragments test_fragments failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_fragments_v6.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_fragments_v6.sh new file mode 100644 index 000000000..d7d60dc90 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_fragments_v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_fragments_v6 test_fragments_v6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_fragments_v6 test_fragments_v6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_fragments_v6 test_fragments_v6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_getname.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_getname.sh new file mode 100644 index 000000000..1e1c5ebc9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_getname.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_getname test_getname +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_getname test_getname + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_getname test_getname failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_getname_v6.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_getname_v6.sh new file mode 100644 index 000000000..118955d1e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_getname_v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_getname_v6 test_getname_v6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_getname_v6 test_getname_v6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_getname_v6 test_getname_v6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_inaddr_any.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_inaddr_any.sh new file mode 100644 index 000000000..a8de26d84 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_inaddr_any.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_inaddr_any test_inaddr_any +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_inaddr_any test_inaddr_any + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_inaddr_any test_inaddr_any failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_inaddr_any_v6.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_inaddr_any_v6.sh new file mode 100644 index 000000000..bb305c50e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_inaddr_any_v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_inaddr_any_v6 test_inaddr_any_v6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_inaddr_any_v6 test_inaddr_any_v6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_inaddr_any_v6 test_inaddr_any_v6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_peeloff.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_peeloff.sh new file mode 100644 index 000000000..05bb7cd1b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_peeloff.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_peeloff test_peeloff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_peeloff test_peeloff + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_peeloff test_peeloff failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_peeloff_v6.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_peeloff_v6.sh new file mode 100644 index 000000000..56718349d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_peeloff_v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_peeloff_v6 test_peeloff_v6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_peeloff_v6 test_peeloff_v6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_peeloff_v6 test_peeloff_v6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_recvmsg.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_recvmsg.sh new file mode 100644 index 000000000..a37b38575 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_recvmsg.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_recvmsg test_recvmsg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_recvmsg test_recvmsg + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_recvmsg test_recvmsg failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sctp_sendrecvmsg.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sctp_sendrecvmsg.sh new file mode 100644 index 000000000..2c09607ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sctp_sendrecvmsg.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_sctp_sendrecvmsg test_sctp_sendrecvmsg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_sctp_sendrecvmsg test_sctp_sendrecvmsg + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_sctp_sendrecvmsg test_sctp_sendrecvmsg failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sctp_sendrecvmsg_v6.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sctp_sendrecvmsg_v6.sh new file mode 100644 index 000000000..7cd67608c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sctp_sendrecvmsg_v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_sctp_sendrecvmsg_v6 test_sctp_sendrecvmsg_v6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_sctp_sendrecvmsg_v6 test_sctp_sendrecvmsg_v6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_sctp_sendrecvmsg_v6 test_sctp_sendrecvmsg_v6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sockopt.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sockopt.sh new file mode 100644 index 000000000..7bbbb0ab5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sockopt.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_sockopt test_sockopt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_sockopt test_sockopt + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_sockopt test_sockopt failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sockopt_v6.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sockopt_v6.sh new file mode 100644 index 000000000..283d00405 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_sockopt_v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_sockopt_v6 test_sockopt_v6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_sockopt_v6 test_sockopt_v6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_sockopt_v6 test_sockopt_v6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_tcp_style.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_tcp_style.sh new file mode 100644 index 000000000..b68913f81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_tcp_style.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_tcp_style test_tcp_style +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_tcp_style test_tcp_style + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_tcp_style test_tcp_style failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_tcp_style_v6.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_tcp_style_v6.sh new file mode 100644 index 000000000..717d75647 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_tcp_style_v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_tcp_style_v6 test_tcp_style_v6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_tcp_style_v6 test_tcp_style_v6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_tcp_style_v6 test_tcp_style_v6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_timetolive.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_timetolive.sh new file mode 100644 index 000000000..757847d9b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_timetolive.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_timetolive test_timetolive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_timetolive test_timetolive + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_timetolive test_timetolive failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_timetolive_v6.sh b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_timetolive_v6.sh new file mode 100644 index 000000000..e4c4df308 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_sctp/oe_test_ltp_net_sctp_test_timetolive_v6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_sctp test_timetolive_v6 test_timetolive_v6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.sctp -s test_timetolive_v6 test_timetolive_v6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.sctp test_timetolive_v6 test_timetolive_v6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_dns4-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_dns4-stress.sh new file mode 100644 index 000000000..081afd611 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_dns4-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl dns4-stress dns-stress.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s dns4-stress dns-stress.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl dns4-stress dns-stress.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_dns6-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_dns6-stress.sh new file mode 100644 index 000000000..5b96e0806 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_dns6-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl dns6-stress dns-stress.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s dns6-stress dns-stress.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl dns6-stress dns-stress.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp4-download-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp4-download-stress.sh new file mode 100644 index 000000000..2f6fc5dfe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp4-download-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl ftp4-download-stress ftp-download-stress.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s ftp4-download-stress ftp-download-stress.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl ftp4-download-stress ftp-download-stress.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp4-upload-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp4-upload-stress.sh new file mode 100644 index 000000000..98932ff0e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp4-upload-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl ftp4-upload-stress ftp-upload-stress.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s ftp4-upload-stress ftp-upload-stress.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl ftp4-upload-stress ftp-upload-stress.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp6-download-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp6-download-stress.sh new file mode 100644 index 000000000..451cb5639 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp6-download-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl ftp6-download-stress ftp-download-stress.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s ftp6-download-stress ftp-download-stress.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl ftp6-download-stress ftp-download-stress.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp6-upload-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp6-upload-stress.sh new file mode 100644 index 000000000..d1a3552bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ftp6-upload-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl ftp6-upload-stress ftp-upload-stress.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s ftp6-upload-stress ftp-upload-stress.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl ftp6-upload-stress ftp-upload-stress.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_http4-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_http4-stress.sh new file mode 100644 index 000000000..ac7fb4a0a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_http4-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl http4-stress http-stress.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s http4-stress http-stress.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl http4-stress http-stress.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_http6-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_http6-stress.sh new file mode 100644 index 000000000..9f281c633 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_http6-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl http6-stress http-stress.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s http6-stress http-stress.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl http6-stress http-stress.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ssh4-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ssh4-stress.sh new file mode 100644 index 000000000..6af18adad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ssh4-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl ssh4-stress ssh-stress.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s ssh4-stress ssh-stress.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl ssh4-stress ssh-stress.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ssh6-stress.sh b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ssh6-stress.sh new file mode 100644 index 000000000..d2f64e858 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_appl/oe_test_ltp_net_stress_appl_ssh6-stress.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_appl ssh6-stress ssh-stress.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.appl -s ssh6-stress ssh-stress.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.appl ssh6-stress ssh-stress.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-checksum.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-checksum.sh new file mode 100644 index 000000000..e13f6341f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-checksum.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip4-checksum broken_ip-checksum.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip4-checksum broken_ip-checksum.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip4-checksum broken_ip-checksum.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-dstaddr.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-dstaddr.sh new file mode 100644 index 000000000..2d7c18a1a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-dstaddr.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip4-dstaddr broken_ip-dstaddr.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip4-dstaddr broken_ip-dstaddr.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip4-dstaddr broken_ip-dstaddr.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-fragment.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-fragment.sh new file mode 100644 index 000000000..8e629bee9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-fragment.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip4-fragment broken_ip-fragment.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip4-fragment broken_ip-fragment.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip4-fragment broken_ip-fragment.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-ihl.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-ihl.sh new file mode 100644 index 000000000..1dadb5eac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-ihl.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip4-ihl broken_ip-ihl.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip4-ihl broken_ip-ihl.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip4-ihl broken_ip-ihl.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-plen.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-plen.sh new file mode 100644 index 000000000..f5776736a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-plen.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip4-plen broken_ip-plen.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip4-plen broken_ip-plen.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip4-plen broken_ip-plen.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-protcol.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-protcol.sh new file mode 100644 index 000000000..c2f2584f3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-protcol.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip4-protcol broken_ip-protcol.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip4-protcol broken_ip-protcol.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip4-protcol broken_ip-protcol.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-version.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-version.sh new file mode 100644 index 000000000..c007d7f6c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip4-version.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip4-version broken_ip-version.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip4-version broken_ip-version.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip4-version broken_ip-version.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-dstaddr.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-dstaddr.sh new file mode 100644 index 000000000..0f210c78f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-dstaddr.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip6-dstaddr broken_ip-dstaddr.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip6-dstaddr broken_ip-dstaddr.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip6-dstaddr broken_ip-dstaddr.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-nexthdr.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-nexthdr.sh new file mode 100644 index 000000000..40bdcc826 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-nexthdr.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip6-nexthdr broken_ip-nexthdr.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip6-nexthdr broken_ip-nexthdr.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip6-nexthdr broken_ip-nexthdr.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-plen.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-plen.sh new file mode 100644 index 000000000..772be461d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-plen.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip6-plen broken_ip-plen.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip6-plen broken_ip-plen.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip6-plen broken_ip-plen.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-version.sh b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-version.sh new file mode 100644 index 000000000..63243c99d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_broken_ip/oe_test_ltp_net_stress_broken_ip_broken_ip6-version.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_broken_ip broken_ip6-version broken_ip-version.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.broken_ip -s broken_ip6-version broken_ip-version.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.broken_ip broken_ip6-version broken_ip-version.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-adddel_ifconfig.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-adddel_ifconfig.sh new file mode 100644 index 000000000..c52a4aa1f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-adddel_ifconfig.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-addr-adddel_ifconfig if-addr-adddel.sh -c ifconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-addr-adddel_ifconfig if-addr-adddel.sh -c ifconfig + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-addr-adddel_ifconfig if-addr-adddel.sh -c ifconfig failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-adddel_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-adddel_ip.sh new file mode 100644 index 000000000..dafac0264 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-adddel_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-addr-adddel_ip if-addr-adddel.sh -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-addr-adddel_ip if-addr-adddel.sh -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-addr-adddel_ip if-addr-adddel.sh -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-addlarge_ifconfig.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-addlarge_ifconfig.sh new file mode 100644 index 000000000..8cbe4f1e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-addlarge_ifconfig.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-addr-addlarge_ifconfig if-addr-addlarge.sh -c ifconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-addr-addlarge_ifconfig if-addr-addlarge.sh -c ifconfig + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-addr-addlarge_ifconfig if-addr-addlarge.sh -c ifconfig failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-addlarge_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-addlarge_ip.sh new file mode 100644 index 000000000..2fd33d5a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-addlarge_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-addr-addlarge_ip if-addr-addlarge.sh -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-addr-addlarge_ip if-addr-addlarge.sh -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-addr-addlarge_ip if-addr-addlarge.sh -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-change_ifconfig.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-change_ifconfig.sh new file mode 100644 index 000000000..36eef6382 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-addr-change_ifconfig.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-addr-change_ifconfig if4-addr-change.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-addr-change_ifconfig if4-addr-change.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-addr-change_ifconfig if4-addr-change.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-mtu-change_ifconfig.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-mtu-change_ifconfig.sh new file mode 100644 index 000000000..b5d176a8c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-mtu-change_ifconfig.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-mtu-change_ifconfig if-mtu-change.sh -c ifconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-mtu-change_ifconfig if-mtu-change.sh -c ifconfig + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-mtu-change_ifconfig if-mtu-change.sh -c ifconfig failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-mtu-change_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-mtu-change_ip.sh new file mode 100644 index 000000000..f898cfa0f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-mtu-change_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-mtu-change_ip if-mtu-change.sh -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-mtu-change_ip if-mtu-change.sh -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-mtu-change_ip if-mtu-change.sh -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-adddel_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-adddel_ip.sh new file mode 100644 index 000000000..76bb32427 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-adddel_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-route-adddel_ip if-route-adddel.sh -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-route-adddel_ip if-route-adddel.sh -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-route-adddel_ip if-route-adddel.sh -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-adddel_route.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-adddel_route.sh new file mode 100644 index 000000000..75faaec51 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-adddel_route.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-route-adddel_route if-route-adddel.sh -c route +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-route-adddel_route if-route-adddel.sh -c route + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-route-adddel_route if-route-adddel.sh -c route failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-addlarge_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-addlarge_ip.sh new file mode 100644 index 000000000..53ae03729 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-addlarge_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-route-addlarge_ip if-route-addlarge.sh -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-route-addlarge_ip if-route-addlarge.sh -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-route-addlarge_ip if-route-addlarge.sh -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-addlarge_route.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-addlarge_route.sh new file mode 100644 index 000000000..0bb4aad49 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-route-addlarge_route.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-route-addlarge_route if-route-addlarge.sh -c route +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-route-addlarge_route if-route-addlarge.sh -c route + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-route-addlarge_route if-route-addlarge.sh -c route failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-updown_ifconfig.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-updown_ifconfig.sh new file mode 100644 index 000000000..29dcd4272 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-updown_ifconfig.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-updown_ifconfig if-updown.sh -c ifconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-updown_ifconfig if-updown.sh -c ifconfig + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-updown_ifconfig if-updown.sh -c ifconfig failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-updown_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-updown_ip.sh new file mode 100644 index 000000000..36189599b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if4-updown_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if4-updown_ip if-updown.sh -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if4-updown_ip if-updown.sh -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if4-updown_ip if-updown.sh -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-adddel_ifconfig.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-adddel_ifconfig.sh new file mode 100644 index 000000000..95f957ee3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-adddel_ifconfig.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-addr-adddel_ifconfig if-addr-adddel.sh -6 -c ifconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-addr-adddel_ifconfig if-addr-adddel.sh -6 -c ifconfig + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-addr-adddel_ifconfig if-addr-adddel.sh -6 -c ifconfig failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-adddel_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-adddel_ip.sh new file mode 100644 index 000000000..f7177e108 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-adddel_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-addr-adddel_ip if-addr-adddel.sh -6 -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-addr-adddel_ip if-addr-adddel.sh -6 -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-addr-adddel_ip if-addr-adddel.sh -6 -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-addlarge_ifconfig.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-addlarge_ifconfig.sh new file mode 100644 index 000000000..9543d4c8e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-addlarge_ifconfig.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-addr-addlarge_ifconfig if-addr-addlarge.sh -6 -c ifconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-addr-addlarge_ifconfig if-addr-addlarge.sh -6 -c ifconfig + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-addr-addlarge_ifconfig if-addr-addlarge.sh -6 -c ifconfig failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-addlarge_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-addlarge_ip.sh new file mode 100644 index 000000000..c3248b36f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-addr-addlarge_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-addr-addlarge_ip if-addr-addlarge.sh -6 -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-addr-addlarge_ip if-addr-addlarge.sh -6 -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-addr-addlarge_ip if-addr-addlarge.sh -6 -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-mtu-change_ifconfig.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-mtu-change_ifconfig.sh new file mode 100644 index 000000000..dc44c64f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-mtu-change_ifconfig.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-mtu-change_ifconfig if-mtu-change.sh -6 -c ifconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-mtu-change_ifconfig if-mtu-change.sh -6 -c ifconfig + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-mtu-change_ifconfig if-mtu-change.sh -6 -c ifconfig failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-mtu-change_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-mtu-change_ip.sh new file mode 100644 index 000000000..e8a3b71c6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-mtu-change_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-mtu-change_ip if-mtu-change.sh -6 -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-mtu-change_ip if-mtu-change.sh -6 -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-mtu-change_ip if-mtu-change.sh -6 -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-adddel_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-adddel_ip.sh new file mode 100644 index 000000000..22b373558 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-adddel_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-route-adddel_ip if-route-adddel.sh -6 -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-route-adddel_ip if-route-adddel.sh -6 -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-route-adddel_ip if-route-adddel.sh -6 -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-adddel_route.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-adddel_route.sh new file mode 100644 index 000000000..25777dad0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-adddel_route.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-route-adddel_route if-route-adddel.sh -6 -c route +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-route-adddel_route if-route-adddel.sh -6 -c route + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-route-adddel_route if-route-adddel.sh -6 -c route failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-addlarge_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-addlarge_ip.sh new file mode 100644 index 000000000..af66a349d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-addlarge_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-route-addlarge_ip if-route-addlarge.sh -6 -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-route-addlarge_ip if-route-addlarge.sh -6 -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-route-addlarge_ip if-route-addlarge.sh -6 -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-addlarge_route.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-addlarge_route.sh new file mode 100644 index 000000000..85675cbb1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-route-addlarge_route.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-route-addlarge_route if-route-addlarge.sh -6 -c route +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-route-addlarge_route if-route-addlarge.sh -6 -c route + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-route-addlarge_route if-route-addlarge.sh -6 -c route failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-updown_ifconfig.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-updown_ifconfig.sh new file mode 100644 index 000000000..d2f3bc3f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-updown_ifconfig.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-updown_ifconfig if-updown.sh -6 -c ifconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-updown_ifconfig if-updown.sh -6 -c ifconfig + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-updown_ifconfig if-updown.sh -6 -c ifconfig failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-updown_ip.sh b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-updown_ip.sh new file mode 100644 index 000000000..caa5d4730 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_interface/oe_test_ltp_net_stress_interface_if6-updown_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_interface if6-updown_ip if-updown.sh -6 -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.interface -s if6-updown_ip if-updown.sh -6 -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.interface if6-updown_ip if-updown.sh -6 -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec01.sh new file mode 100644 index 000000000..2912c0525 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec01 dccp_ipsec.sh -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec01 dccp_ipsec.sh -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec01 dccp_ipsec.sh -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec02.sh new file mode 100644 index 000000000..929e82879 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec02 dccp_ipsec.sh -p ah -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec02 dccp_ipsec.sh -p ah -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec02 dccp_ipsec.sh -p ah -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec03.sh new file mode 100644 index 000000000..25d4e659f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec03 dccp_ipsec.sh -p ah -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec03 dccp_ipsec.sh -p ah -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec03 dccp_ipsec.sh -p ah -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec04.sh new file mode 100644 index 000000000..982ec5eea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec04 dccp_ipsec.sh -p esp -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec04 dccp_ipsec.sh -p esp -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec04 dccp_ipsec.sh -p esp -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec05.sh new file mode 100644 index 000000000..94a8beb04 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec05 dccp_ipsec.sh -p esp -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec05 dccp_ipsec.sh -p esp -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec05 dccp_ipsec.sh -p esp -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec06.sh new file mode 100644 index 000000000..8306f8a8a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec06 dccp_ipsec.sh -p comp -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec06 dccp_ipsec.sh -p comp -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec06 dccp_ipsec.sh -p comp -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec07.sh new file mode 100644 index 000000000..b02aef39a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec07 dccp_ipsec.sh -p comp -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec07 dccp_ipsec.sh -p comp -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec07 dccp_ipsec.sh -p comp -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec08.sh new file mode 100644 index 000000000..5e484416a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec08 dccp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec08 dccp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec08 dccp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec09.sh new file mode 100644 index 000000000..3a8df940a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec09 dccp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec09 dccp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec09 dccp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec10.sh new file mode 100644 index 000000000..ee735f110 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec10 dccp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec10 dccp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec10 dccp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec11.sh new file mode 100644 index 000000000..809acdf70 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec11 dccp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec11 dccp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec11 dccp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec12.sh new file mode 100644 index 000000000..7459894ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec12 dccp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec12 dccp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec12 dccp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec13.sh new file mode 100644 index 000000000..78ff8e5d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec13 dccp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec13 dccp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec13 dccp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec14.sh new file mode 100644 index 000000000..b8d3db60d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec14 dccp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec14 dccp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec14 dccp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec15.sh new file mode 100644 index 000000000..baed4b855 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec15 dccp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec15 dccp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec15 dccp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec16.sh new file mode 100644 index 000000000..04a103ab0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec16 dccp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec16 dccp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec16 dccp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec17.sh new file mode 100644 index 000000000..b93b40ec3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec17 dccp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec17 dccp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec17 dccp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec18.sh new file mode 100644 index 000000000..180862405 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec18 dccp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec18 dccp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec18 dccp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec19.sh new file mode 100644 index 000000000..df02c83a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec19 dccp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec19 dccp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec19 dccp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec20.sh new file mode 100644 index 000000000..d4556a3bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec20 dccp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec20 dccp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec20 dccp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec21.sh new file mode 100644 index 000000000..924150510 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec21 dccp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec21 dccp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec21 dccp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec22.sh new file mode 100644 index 000000000..060944ecf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec22 dccp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec22 dccp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec22 dccp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec23.sh new file mode 100644 index 000000000..5dd3e77b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec23 dccp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec23 dccp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec23 dccp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec24.sh new file mode 100644 index 000000000..0114e9b6c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec24 dccp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec24 dccp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec24 dccp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec25.sh new file mode 100644 index 000000000..a5025ca67 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec25 dccp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec25 dccp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec25 dccp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec26.sh new file mode 100644 index 000000000..4239c2fb6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec26 dccp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec26 dccp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec26 dccp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec27.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec27.sh new file mode 100644 index 000000000..737b821f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec27 dccp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec27 dccp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec27 dccp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec28.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec28.sh new file mode 100644 index 000000000..987083b87 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec28 dccp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec28 dccp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec28 dccp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec29.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec29.sh new file mode 100644 index 000000000..3a830d324 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec29 dccp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec29 dccp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec29 dccp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec30.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec30.sh new file mode 100644 index 000000000..47baddfda --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec30 dccp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec30 dccp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec30 dccp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec31.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec31.sh new file mode 100644 index 000000000..a3cb16722 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec31 dccp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec31 dccp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec31 dccp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec32.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec32.sh new file mode 100644 index 000000000..372f7a2ae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec32 dccp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec32 dccp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec32 dccp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec33.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec33.sh new file mode 100644 index 000000000..2c010e627 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec33 dccp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec33 dccp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec33 dccp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec34.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec34.sh new file mode 100644 index 000000000..52fc57814 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec34 dccp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec34 dccp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec34 dccp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec35.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec35.sh new file mode 100644 index 000000000..37da7c3f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec35 dccp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec35 dccp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec35 dccp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec36.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec36.sh new file mode 100644 index 000000000..54bb0c3a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec36 dccp_ipsec.sh -p esp -m beet -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec36 dccp_ipsec.sh -p esp -m beet -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec36 dccp_ipsec.sh -p esp -m beet -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti01.sh new file mode 100644 index 000000000..87e8e9916 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti01 dccp_ipsec_vti.sh -p ah -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti01 dccp_ipsec_vti.sh -p ah -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti01 dccp_ipsec_vti.sh -p ah -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti02.sh new file mode 100644 index 000000000..617bd3cc0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti02 dccp_ipsec_vti.sh -p esp -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti02 dccp_ipsec_vti.sh -p esp -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti02 dccp_ipsec_vti.sh -p esp -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti04.sh new file mode 100644 index 000000000..ace13c8c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti04 dccp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti04 dccp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti04 dccp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti05.sh new file mode 100644 index 000000000..38f80bfdc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti05 dccp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti05 dccp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti05 dccp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti06.sh new file mode 100644 index 000000000..42818dedf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti06 dccp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti06 dccp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti06 dccp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti07.sh new file mode 100644 index 000000000..53990a9df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti07 dccp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti07 dccp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti07 dccp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti08.sh new file mode 100644 index 000000000..d880f540d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti08 dccp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti08 dccp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti08 dccp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti09.sh new file mode 100644 index 000000000..d80521150 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti09 dccp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti09 dccp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti09 dccp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti10.sh new file mode 100644 index 000000000..72bceed26 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti10 dccp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti10 dccp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti10 dccp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti11.sh new file mode 100644 index 000000000..1153d3891 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti11 dccp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti11 dccp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti11 dccp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti12.sh new file mode 100644 index 000000000..b6e49570b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti12 dccp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti12 dccp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti12 dccp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti13.sh new file mode 100644 index 000000000..2e431718d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti13 dccp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti13 dccp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti13 dccp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti14.sh new file mode 100644 index 000000000..f61054fd2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti14 dccp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti14 dccp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti14 dccp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti15.sh new file mode 100644 index 000000000..e5f43a3c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti15 dccp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti15 dccp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti15 dccp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti16.sh new file mode 100644 index 000000000..7f7fa2874 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti16 dccp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti16 dccp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti16 dccp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti17.sh new file mode 100644 index 000000000..c318d0e86 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp4_ipsec_vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp4_ipsec_vti17 dccp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp4_ipsec_vti17 dccp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp4_ipsec_vti17 dccp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec01.sh new file mode 100644 index 000000000..03f4a09e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec01 dccp_ipsec.sh -6 -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec01 dccp_ipsec.sh -6 -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec01 dccp_ipsec.sh -6 -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec02.sh new file mode 100644 index 000000000..bc05cf0bf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec02 dccp_ipsec.sh -6 -p ah -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec02 dccp_ipsec.sh -6 -p ah -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec02 dccp_ipsec.sh -6 -p ah -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec03.sh new file mode 100644 index 000000000..9bd258834 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec03 dccp_ipsec.sh -6 -p ah -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec03 dccp_ipsec.sh -6 -p ah -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec03 dccp_ipsec.sh -6 -p ah -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec04.sh new file mode 100644 index 000000000..08fb22f2d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec04 dccp_ipsec.sh -6 -p esp -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec04 dccp_ipsec.sh -6 -p esp -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec04 dccp_ipsec.sh -6 -p esp -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec05.sh new file mode 100644 index 000000000..caf6196bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec05 dccp_ipsec.sh -6 -p esp -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec05 dccp_ipsec.sh -6 -p esp -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec05 dccp_ipsec.sh -6 -p esp -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec06.sh new file mode 100644 index 000000000..4c25d4663 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec06 dccp_ipsec.sh -6 -p comp -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec06 dccp_ipsec.sh -6 -p comp -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec06 dccp_ipsec.sh -6 -p comp -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec07.sh new file mode 100644 index 000000000..42d668b69 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec07 dccp_ipsec.sh -6 -p comp -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec07 dccp_ipsec.sh -6 -p comp -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec07 dccp_ipsec.sh -6 -p comp -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec08.sh new file mode 100644 index 000000000..830f5dd7d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec08 dccp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec08 dccp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec08 dccp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec09.sh new file mode 100644 index 000000000..4388d6ef4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec09 dccp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec09 dccp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec09 dccp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec10.sh new file mode 100644 index 000000000..de5d0b194 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec10 dccp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec10 dccp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec10 dccp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec11.sh new file mode 100644 index 000000000..5765b5f1c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec11 dccp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec11 dccp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec11 dccp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec12.sh new file mode 100644 index 000000000..3c3f38632 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec12 dccp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec12 dccp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec12 dccp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec13.sh new file mode 100644 index 000000000..ed2c057ba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec13 dccp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec13 dccp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec13 dccp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec14.sh new file mode 100644 index 000000000..168cba026 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec14 dccp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec14 dccp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec14 dccp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec15.sh new file mode 100644 index 000000000..3f4c94792 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec15 dccp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec15 dccp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec15 dccp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec16.sh new file mode 100644 index 000000000..4852c50ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec16 dccp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec16 dccp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec16 dccp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec17.sh new file mode 100644 index 000000000..abd2fa5b1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec17 dccp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec17 dccp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec17 dccp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec18.sh new file mode 100644 index 000000000..3578c4bb6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec18 dccp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec18 dccp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec18 dccp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec19.sh new file mode 100644 index 000000000..10e2ddb71 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec19 dccp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec19 dccp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec19 dccp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec20.sh new file mode 100644 index 000000000..cb4b7d665 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec20 dccp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec20 dccp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec20 dccp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec21.sh new file mode 100644 index 000000000..69d8c12ac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec21 dccp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec21 dccp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec21 dccp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec22.sh new file mode 100644 index 000000000..afa62bb71 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec22 dccp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec22 dccp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec22 dccp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec23.sh new file mode 100644 index 000000000..12ad16583 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec23 dccp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec23 dccp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec23 dccp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec24.sh new file mode 100644 index 000000000..f46c20414 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec24 dccp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec24 dccp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec24 dccp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec25.sh new file mode 100644 index 000000000..5b1c98750 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec25 dccp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec25 dccp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec25 dccp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec26.sh new file mode 100644 index 000000000..794669121 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec26 dccp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec26 dccp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec26 dccp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec27.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec27.sh new file mode 100644 index 000000000..1ac47e6e7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec27 dccp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec27 dccp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec27 dccp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec28.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec28.sh new file mode 100644 index 000000000..bd795b6dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec28 dccp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec28 dccp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec28 dccp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec29.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec29.sh new file mode 100644 index 000000000..8a63a56fb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec29 dccp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec29 dccp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec29 dccp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec30.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec30.sh new file mode 100644 index 000000000..102b58e44 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec30 dccp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec30 dccp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec30 dccp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec31.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec31.sh new file mode 100644 index 000000000..d4a11447c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec31 dccp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec31 dccp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec31 dccp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec32.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec32.sh new file mode 100644 index 000000000..889c7292c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec32 dccp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec32 dccp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec32 dccp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec33.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec33.sh new file mode 100644 index 000000000..ec3f69356 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec33 dccp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec33 dccp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec33 dccp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec34.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec34.sh new file mode 100644 index 000000000..0c5345c9c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec34 dccp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec34 dccp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec34 dccp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec35.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec35.sh new file mode 100644 index 000000000..96a45bf66 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec35 dccp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec35 dccp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec35 dccp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec36.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec36.sh new file mode 100644 index 000000000..2a92e17e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec36 dccp_ipsec.sh -6 -p esp -m beet -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec36 dccp_ipsec.sh -6 -p esp -m beet -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec36 dccp_ipsec.sh -6 -p esp -m beet -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti01.sh new file mode 100644 index 000000000..38a0e5337 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti01 dccp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti01 dccp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti01 dccp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti02.sh new file mode 100644 index 000000000..9eeaeadf1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti02 dccp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti02 dccp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti02 dccp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti04.sh new file mode 100644 index 000000000..8a7417b07 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti04 dccp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti04 dccp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti04 dccp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti05.sh new file mode 100644 index 000000000..5573caa52 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti05 dccp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti05 dccp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti05 dccp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti06.sh new file mode 100644 index 000000000..707721d03 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti06 dccp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti06 dccp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti06 dccp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti07.sh new file mode 100644 index 000000000..68b689220 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti07 dccp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti07 dccp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti07 dccp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti08.sh new file mode 100644 index 000000000..7c0dea858 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti08 dccp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti08 dccp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti08 dccp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti09.sh new file mode 100644 index 000000000..cd078ee03 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti09 dccp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti09 dccp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti09 dccp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti10.sh new file mode 100644 index 000000000..a3d665cd2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti10 dccp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti10 dccp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti10 dccp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti11.sh new file mode 100644 index 000000000..99f8ab614 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti11 dccp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti11 dccp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti11 dccp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti12.sh new file mode 100644 index 000000000..a13a54cad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti12 dccp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti12 dccp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti12 dccp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti13.sh new file mode 100644 index 000000000..3636cfbb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti13 dccp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti13 dccp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti13 dccp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti14.sh new file mode 100644 index 000000000..31ac055f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti14 dccp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti14 dccp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti14 dccp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti15.sh new file mode 100644 index 000000000..01e4b3a4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti15 dccp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti15 dccp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti15 dccp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti16.sh new file mode 100644 index 000000000..0940452ee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti16 dccp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti16 dccp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti16 dccp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti17.sh new file mode 100644 index 000000000..c22ff944c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_dccp/oe_test_ltp_net_stress_ipsec_dccp_dccp6_ipsec_vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_dccp dccp6_ipsec_vti17 dccp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_dccp -s dccp6_ipsec_vti17 dccp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_dccp dccp6_ipsec_vti17 dccp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:500:1000:R1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic01.sh new file mode 100644 index 000000000..d354be54d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic01 icmp-uni-basic.sh -s 10:100:1000:10000:65507 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic01 icmp-uni-basic.sh -s 10:100:1000:10000:65507 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic01 icmp-uni-basic.sh -s 10:100:1000:10000:65507 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic02.sh new file mode 100644 index 000000000..441a778ab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic02 icmp-uni-basic.sh -p ah -m transport -s 10:100:1000:10000:65483 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic02 icmp-uni-basic.sh -p ah -m transport -s 10:100:1000:10000:65483 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic02 icmp-uni-basic.sh -p ah -m transport -s 10:100:1000:10000:65483 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic03.sh new file mode 100644 index 000000000..5cc7fff69 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic03 icmp-uni-basic.sh -p ah -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic03 icmp-uni-basic.sh -p ah -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic03 icmp-uni-basic.sh -p ah -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic04.sh new file mode 100644 index 000000000..e7b85d5fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic04 icmp-uni-basic.sh -p esp -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic04 icmp-uni-basic.sh -p esp -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic04 icmp-uni-basic.sh -p esp -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic05.sh new file mode 100644 index 000000000..968f0693b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic05 icmp-uni-basic.sh -p esp -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic05 icmp-uni-basic.sh -p esp -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic05 icmp-uni-basic.sh -p esp -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic06.sh new file mode 100644 index 000000000..884b345f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic06 icmp-uni-basic.sh -p comp -m transport -s 10:100:1000:10000:65000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic06 icmp-uni-basic.sh -p comp -m transport -s 10:100:1000:10000:65000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic06 icmp-uni-basic.sh -p comp -m transport -s 10:100:1000:10000:65000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic07.sh new file mode 100644 index 000000000..adca37cee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic07 icmp-uni-basic.sh -p comp -m tunnel -s 10:100:1000:10000:65000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic07 icmp-uni-basic.sh -p comp -m tunnel -s 10:100:1000:10000:65000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic07 icmp-uni-basic.sh -p comp -m tunnel -s 10:100:1000:10000:65000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic08.sh new file mode 100644 index 000000000..b80a231a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic08 icmp-uni-basic.sh -A rfc4106_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic08 icmp-uni-basic.sh -A rfc4106_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic08 icmp-uni-basic.sh -A rfc4106_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic09.sh new file mode 100644 index 000000000..e89f67108 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic09 icmp-uni-basic.sh -A rfc4106_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic09 icmp-uni-basic.sh -A rfc4106_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic09 icmp-uni-basic.sh -A rfc4106_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic10.sh new file mode 100644 index 000000000..9ebca5bf4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic10 icmp-uni-basic.sh -A rfc4106_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic10 icmp-uni-basic.sh -A rfc4106_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic10 icmp-uni-basic.sh -A rfc4106_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic11.sh new file mode 100644 index 000000000..04cd1c42b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic11 icmp-uni-basic.sh -A rfc4309_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic11 icmp-uni-basic.sh -A rfc4309_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic11 icmp-uni-basic.sh -A rfc4309_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic12.sh new file mode 100644 index 000000000..139154118 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic12 icmp-uni-basic.sh -A rfc4309_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic12 icmp-uni-basic.sh -A rfc4309_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic12 icmp-uni-basic.sh -A rfc4309_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic13.sh new file mode 100644 index 000000000..6fc703c00 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic13 icmp-uni-basic.sh -A rfc4309_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic13 icmp-uni-basic.sh -A rfc4309_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic13 icmp-uni-basic.sh -A rfc4309_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic14.sh new file mode 100644 index 000000000..87be0e9df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic14 icmp-uni-basic.sh -A rfc4543_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic14 icmp-uni-basic.sh -A rfc4543_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic14 icmp-uni-basic.sh -A rfc4543_128 -p esp_aead -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic15.sh new file mode 100644 index 000000000..9cc8153f6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic15 icmp-uni-basic.sh -A rfc4543_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic15 icmp-uni-basic.sh -A rfc4543_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic15 icmp-uni-basic.sh -A rfc4543_192 -p esp_aead -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic16.sh new file mode 100644 index 000000000..cf7b8a50f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic16 icmp-uni-basic.sh -A rfc4543_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic16 icmp-uni-basic.sh -A rfc4543_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic16 icmp-uni-basic.sh -A rfc4543_256 -p esp_aead -m transport -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic17.sh new file mode 100644 index 000000000..57774d012 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic17 icmp-uni-basic.sh -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic17 icmp-uni-basic.sh -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic17 icmp-uni-basic.sh -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic18.sh new file mode 100644 index 000000000..6de431cfd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic18 icmp-uni-basic.sh -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic18 icmp-uni-basic.sh -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic18 icmp-uni-basic.sh -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic19.sh new file mode 100644 index 000000000..0c4891ced --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic19 icmp-uni-basic.sh -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic19 icmp-uni-basic.sh -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic19 icmp-uni-basic.sh -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic20.sh new file mode 100644 index 000000000..a90fcef19 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic20 icmp-uni-basic.sh -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic20 icmp-uni-basic.sh -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic20 icmp-uni-basic.sh -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic21.sh new file mode 100644 index 000000000..0435b3b0a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic21 icmp-uni-basic.sh -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic21 icmp-uni-basic.sh -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic21 icmp-uni-basic.sh -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic22.sh new file mode 100644 index 000000000..528cda0d3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic22 icmp-uni-basic.sh -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic22 icmp-uni-basic.sh -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic22 icmp-uni-basic.sh -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic23.sh new file mode 100644 index 000000000..37dc67292 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic23 icmp-uni-basic.sh -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic23 icmp-uni-basic.sh -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic23 icmp-uni-basic.sh -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic24.sh new file mode 100644 index 000000000..cea99eedf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic24 icmp-uni-basic.sh -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic24 icmp-uni-basic.sh -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic24 icmp-uni-basic.sh -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic25.sh new file mode 100644 index 000000000..bda152152 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic25 icmp-uni-basic.sh -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic25 icmp-uni-basic.sh -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic25 icmp-uni-basic.sh -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic26.sh new file mode 100644 index 000000000..8620b7402 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-basic26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-basic26 icmp-uni-basic.sh -p esp -m beet -s 10:100:1000:10000:65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-basic26 icmp-uni-basic.sh -p esp -m beet -s 10:100:1000:10000:65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-basic26 icmp-uni-basic.sh -p esp -m beet -s 10:100:1000:10000:65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti01.sh new file mode 100644 index 000000000..eba706ad1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti01 icmp-uni-vti.sh -p ah -a sha256 -m tunnel -S fffffffe -k 1 -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti01 icmp-uni-vti.sh -p ah -a sha256 -m tunnel -S fffffffe -k 1 -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti01 icmp-uni-vti.sh -p ah -a sha256 -m tunnel -S fffffffe -k 1 -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti02.sh new file mode 100644 index 000000000..d1c09436f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti02 icmp-uni-vti.sh -p esp -a sha512 -e des -m tunnel -S fffffffe -k 2 -s 10:100:1000:10000:65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti02 icmp-uni-vti.sh -p esp -a sha512 -e des -m tunnel -S fffffffe -k 2 -s 10:100:1000:10000:65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti02 icmp-uni-vti.sh -p esp -a sha512 -e des -m tunnel -S fffffffe -k 2 -s 10:100:1000:10000:65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti03.sh new file mode 100644 index 000000000..e3e0b0841 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti03 icmp-uni-vti.sh -p esp -a rmd160 -e cast5 -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti03 icmp-uni-vti.sh -p esp -a rmd160 -e cast5 -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti03 icmp-uni-vti.sh -p esp -a rmd160 -e cast5 -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti04.sh new file mode 100644 index 000000000..84bbbde53 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti04 icmp-uni-vti.sh -p esp -e blowfish -m tunnel -S fffffffe -k 3 -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti04 icmp-uni-vti.sh -p esp -e blowfish -m tunnel -S fffffffe -k 3 -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti04 icmp-uni-vti.sh -p esp -e blowfish -m tunnel -S fffffffe -k 3 -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti05.sh new file mode 100644 index 000000000..b1a7fb282 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti05 icmp-uni-vti.sh -p esp -a sha512 -e twofish -m tunnel -S fffffffe -k 0x7fffffff -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti05 icmp-uni-vti.sh -p esp -a sha512 -e twofish -m tunnel -S fffffffe -k 0x7fffffff -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti05 icmp-uni-vti.sh -p esp -a sha512 -e twofish -m tunnel -S fffffffe -k 0x7fffffff -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti06.sh new file mode 100644 index 000000000..b69a6d68d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti06 icmp-uni-vti.sh -p esp -a sha384 -e camellia -m tunnel -S fffffffe -k 0x80000000 -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti06 icmp-uni-vti.sh -p esp -a sha384 -e camellia -m tunnel -S fffffffe -k 0x80000000 -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti06 icmp-uni-vti.sh -p esp -a sha384 -e camellia -m tunnel -S fffffffe -k 0x80000000 -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti07.sh new file mode 100644 index 000000000..52b606c1d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti07 icmp-uni-vti.sh -p esp -a sha512 -e serpent -m tunnel -S fffffffe -k 0xffff -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti07 icmp-uni-vti.sh -p esp -a sha512 -e serpent -m tunnel -S fffffffe -k 0xffff -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti07 icmp-uni-vti.sh -p esp -a sha512 -e serpent -m tunnel -S fffffffe -k 0xffff -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti08.sh new file mode 100644 index 000000000..8e7fff0dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti08 icmp-uni-vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti08 icmp-uni-vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti08 icmp-uni-vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti09.sh new file mode 100644 index 000000000..6d8a001b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti09 icmp-uni-vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti09 icmp-uni-vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti09 icmp-uni-vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti10.sh new file mode 100644 index 000000000..286dcd855 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti10 icmp-uni-vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti10 icmp-uni-vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti10 icmp-uni-vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti11.sh new file mode 100644 index 000000000..67dc5cfce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti11 icmp-uni-vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti11 icmp-uni-vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti11 icmp-uni-vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti12.sh new file mode 100644 index 000000000..6adb544ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti12 icmp-uni-vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti12 icmp-uni-vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti12 icmp-uni-vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti13.sh new file mode 100644 index 000000000..2c09eca62 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti13 icmp-uni-vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti13 icmp-uni-vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti13 icmp-uni-vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti14.sh new file mode 100644 index 000000000..2a0b5ea13 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti14 icmp-uni-vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti14 icmp-uni-vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti14 icmp-uni-vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti15.sh new file mode 100644 index 000000000..5ff7f02c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti15 icmp-uni-vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti15 icmp-uni-vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti15 icmp-uni-vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti16.sh new file mode 100644 index 000000000..434794598 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti16 icmp-uni-vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti16 icmp-uni-vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti16 icmp-uni-vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti17.sh new file mode 100644 index 000000000..d91452994 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp4-uni-vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp4-uni-vti17 icmp-uni-vti.sh -p comp -m tunnel -s 1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp4-uni-vti17 icmp-uni-vti.sh -p comp -m tunnel -s 1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp4-uni-vti17 icmp-uni-vti.sh -p comp -m tunnel -s 1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic01.sh new file mode 100644 index 000000000..dcba0044e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic01 icmp-uni-basic.sh -6 -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic01 icmp-uni-basic.sh -6 -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic01 icmp-uni-basic.sh -6 -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic02.sh new file mode 100644 index 000000000..830bcab7c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic02 icmp-uni-basic.sh -6 -p ah -m transport -s 10:100:1000:10000:65503 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic02 icmp-uni-basic.sh -6 -p ah -m transport -s 10:100:1000:10000:65503 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic02 icmp-uni-basic.sh -6 -p ah -m transport -s 10:100:1000:10000:65503 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic03.sh new file mode 100644 index 000000000..eb4179037 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic03 icmp-uni-basic.sh -6 -p ah -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic03 icmp-uni-basic.sh -6 -p ah -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic03 icmp-uni-basic.sh -6 -p ah -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic04.sh new file mode 100644 index 000000000..bc2fed752 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic04 icmp-uni-basic.sh -6 -p esp -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic04 icmp-uni-basic.sh -6 -p esp -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic04 icmp-uni-basic.sh -6 -p esp -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic05.sh new file mode 100644 index 000000000..6c43b8a2d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic05 icmp-uni-basic.sh -6 -p esp -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic05 icmp-uni-basic.sh -6 -p esp -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic05 icmp-uni-basic.sh -6 -p esp -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic06.sh new file mode 100644 index 000000000..a8225f605 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic06 icmp-uni-basic.sh -6 -p comp -m transport -s 10:100:1000:10000:65000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic06 icmp-uni-basic.sh -6 -p comp -m transport -s 10:100:1000:10000:65000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic06 icmp-uni-basic.sh -6 -p comp -m transport -s 10:100:1000:10000:65000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic07.sh new file mode 100644 index 000000000..a4554bdaf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic07 icmp-uni-basic.sh -6 -p comp -m tunnel -s 10:100:1000:10000:65000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic07 icmp-uni-basic.sh -6 -p comp -m tunnel -s 10:100:1000:10000:65000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic07 icmp-uni-basic.sh -6 -p comp -m tunnel -s 10:100:1000:10000:65000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic08.sh new file mode 100644 index 000000000..912f23441 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic08 icmp-uni-basic.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic08 icmp-uni-basic.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic08 icmp-uni-basic.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic09.sh new file mode 100644 index 000000000..18a6e9076 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic09 icmp-uni-basic.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic09 icmp-uni-basic.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic09 icmp-uni-basic.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic10.sh new file mode 100644 index 000000000..8e21005b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic10 icmp-uni-basic.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic10 icmp-uni-basic.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic10 icmp-uni-basic.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic11.sh new file mode 100644 index 000000000..f790eacf2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic11 icmp-uni-basic.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic11 icmp-uni-basic.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic11 icmp-uni-basic.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic12.sh new file mode 100644 index 000000000..00edec1c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic12 icmp-uni-basic.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic12 icmp-uni-basic.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic12 icmp-uni-basic.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic13.sh new file mode 100644 index 000000000..2648da2e3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic13 icmp-uni-basic.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic13 icmp-uni-basic.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic13 icmp-uni-basic.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic14.sh new file mode 100644 index 000000000..ec52af358 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic14 icmp-uni-basic.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic14 icmp-uni-basic.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic14 icmp-uni-basic.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic15.sh new file mode 100644 index 000000000..d28cbe978 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic15 icmp-uni-basic.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic15 icmp-uni-basic.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic15 icmp-uni-basic.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic16.sh new file mode 100644 index 000000000..1f78c47c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic16 icmp-uni-basic.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic16 icmp-uni-basic.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic16 icmp-uni-basic.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic17.sh new file mode 100644 index 000000000..6c38aea23 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic17 icmp-uni-basic.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic17 icmp-uni-basic.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic17 icmp-uni-basic.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic18.sh new file mode 100644 index 000000000..a41fda53b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic18 icmp-uni-basic.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic18 icmp-uni-basic.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic18 icmp-uni-basic.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic19.sh new file mode 100644 index 000000000..0ee04efac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic19 icmp-uni-basic.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic19 icmp-uni-basic.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic19 icmp-uni-basic.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic20.sh new file mode 100644 index 000000000..95f4cdff8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic20 icmp-uni-basic.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic20 icmp-uni-basic.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic20 icmp-uni-basic.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic21.sh new file mode 100644 index 000000000..2434d7197 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic21 icmp-uni-basic.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic21 icmp-uni-basic.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic21 icmp-uni-basic.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic22.sh new file mode 100644 index 000000000..c92ebc0dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic22 icmp-uni-basic.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic22 icmp-uni-basic.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic22 icmp-uni-basic.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic23.sh new file mode 100644 index 000000000..c35c584c6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic23 icmp-uni-basic.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic23 icmp-uni-basic.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic23 icmp-uni-basic.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic24.sh new file mode 100644 index 000000000..848a54730 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic24 icmp-uni-basic.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic24 icmp-uni-basic.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic24 icmp-uni-basic.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic25.sh new file mode 100644 index 000000000..9350624e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic25 icmp-uni-basic.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic25 icmp-uni-basic.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic25 icmp-uni-basic.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic26.sh new file mode 100644 index 000000000..26a9f3b60 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-basic26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-basic26 icmp-uni-basic.sh -6 -p esp -m beet -s 10:100:1000:10000:65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-basic26 icmp-uni-basic.sh -6 -p esp -m beet -s 10:100:1000:10000:65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-basic26 icmp-uni-basic.sh -6 -p esp -m beet -s 10:100:1000:10000:65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti01.sh new file mode 100644 index 000000000..8a1b3c756 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti01 icmp-uni-vti.sh -6 -p ah -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti01 icmp-uni-vti.sh -6 -p ah -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti01 icmp-uni-vti.sh -6 -p ah -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti02.sh new file mode 100644 index 000000000..5f8592f18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti02 icmp-uni-vti.sh -6 -p esp -a sha256 -e des3_ede -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti02 icmp-uni-vti.sh -6 -p esp -a sha256 -e des3_ede -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti02 icmp-uni-vti.sh -6 -p esp -a sha256 -e des3_ede -m tunnel -S fffffffe -k 0xffffffff -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti03.sh new file mode 100644 index 000000000..572150206 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti03 icmp-uni-vti.sh -6 -p esp -a sha512 -e cast5 -m tunnel -S fffffffe -k 1 -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti03 icmp-uni-vti.sh -6 -p esp -a sha512 -e cast5 -m tunnel -S fffffffe -k 1 -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti03 icmp-uni-vti.sh -6 -p esp -a sha512 -e cast5 -m tunnel -S fffffffe -k 1 -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti04.sh new file mode 100644 index 000000000..77e52ff5c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti04 icmp-uni-vti.sh -6 -p esp -a rmd160 -e blowfish -m tunnel -S fffffffe -k 0x80000000 -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti04 icmp-uni-vti.sh -6 -p esp -a rmd160 -e blowfish -m tunnel -S fffffffe -k 0x80000000 -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti04 icmp-uni-vti.sh -6 -p esp -a rmd160 -e blowfish -m tunnel -S fffffffe -k 0x80000000 -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti05.sh new file mode 100644 index 000000000..cd55e493e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti05 icmp-uni-vti.sh -6 -p esp -e twofish -m tunnel -S fffffffe -k 0xffff -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti05 icmp-uni-vti.sh -6 -p esp -e twofish -m tunnel -S fffffffe -k 0xffff -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti05 icmp-uni-vti.sh -6 -p esp -e twofish -m tunnel -S fffffffe -k 0xffff -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti06.sh new file mode 100644 index 000000000..8f152144a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti06 icmp-uni-vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -S fffffffe -k 0x7fffffff -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti06 icmp-uni-vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -S fffffffe -k 0x7fffffff -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti06 icmp-uni-vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -S fffffffe -k 0x7fffffff -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti07.sh new file mode 100644 index 000000000..49602f984 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti07 icmp-uni-vti.sh -6 -p esp -a sha384 -e serpent -m tunnel -S ffffffff -k 0x11111111 -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti07 icmp-uni-vti.sh -6 -p esp -a sha384 -e serpent -m tunnel -S ffffffff -k 0x11111111 -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti07 icmp-uni-vti.sh -6 -p esp -a sha384 -e serpent -m tunnel -S ffffffff -k 0x11111111 -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti08.sh new file mode 100644 index 000000000..62d02a114 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti08 icmp-uni-vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti08 icmp-uni-vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti08 icmp-uni-vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti09.sh new file mode 100644 index 000000000..d18691341 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti09 icmp-uni-vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti09 icmp-uni-vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti09 icmp-uni-vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti10.sh new file mode 100644 index 000000000..f4c14d9ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti10 icmp-uni-vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti10 icmp-uni-vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti10 icmp-uni-vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti11.sh new file mode 100644 index 000000000..0d04f7cd0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti11 icmp-uni-vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti11 icmp-uni-vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti11 icmp-uni-vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti12.sh new file mode 100644 index 000000000..9f82e8b87 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti12 icmp-uni-vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti12 icmp-uni-vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti12 icmp-uni-vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti13.sh new file mode 100644 index 000000000..a97c38e51 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti13 icmp-uni-vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti13 icmp-uni-vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti13 icmp-uni-vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti14.sh new file mode 100644 index 000000000..8407c9fc5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti14 icmp-uni-vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti14 icmp-uni-vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti14 icmp-uni-vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti15.sh new file mode 100644 index 000000000..70cf9dfd5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti15 icmp-uni-vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti15 icmp-uni-vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti15 icmp-uni-vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti16.sh new file mode 100644 index 000000000..d191f8320 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti16 icmp-uni-vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti16 icmp-uni-vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti16 icmp-uni-vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 10:100:1000:10000:65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti17.sh new file mode 100644 index 000000000..b8cd46365 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_icmp/oe_test_ltp_net_stress_ipsec_icmp_icmp6-uni-vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_icmp icmp6-uni-vti17 icmp-uni-vti.sh -6 -p comp -m tunnel -s 1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_icmp -s icmp6-uni-vti17 icmp-uni-vti.sh -6 -p comp -m tunnel -s 1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_icmp icmp6-uni-vti17 icmp-uni-vti.sh -6 -p comp -m tunnel -s 1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec01.sh new file mode 100644 index 000000000..e33538654 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec01 sctp_ipsec.sh -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec01 sctp_ipsec.sh -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec01 sctp_ipsec.sh -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec02.sh new file mode 100644 index 000000000..9fe7e9754 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec02 sctp_ipsec.sh -p ah -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec02 sctp_ipsec.sh -p ah -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec02 sctp_ipsec.sh -p ah -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec03.sh new file mode 100644 index 000000000..b5126e183 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec03 sctp_ipsec.sh -p ah -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec03 sctp_ipsec.sh -p ah -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec03 sctp_ipsec.sh -p ah -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec04.sh new file mode 100644 index 000000000..f1790db89 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec04 sctp_ipsec.sh -p esp -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec04 sctp_ipsec.sh -p esp -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec04 sctp_ipsec.sh -p esp -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec05.sh new file mode 100644 index 000000000..619471fb7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec05 sctp_ipsec.sh -p esp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec05 sctp_ipsec.sh -p esp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec05 sctp_ipsec.sh -p esp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec06.sh new file mode 100644 index 000000000..666b8985e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec06 sctp_ipsec.sh -p comp -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec06 sctp_ipsec.sh -p comp -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec06 sctp_ipsec.sh -p comp -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec07.sh new file mode 100644 index 000000000..237c71767 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec07 sctp_ipsec.sh -p comp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec07 sctp_ipsec.sh -p comp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec07 sctp_ipsec.sh -p comp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec08.sh new file mode 100644 index 000000000..a77f46189 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec08 sctp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec08 sctp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec08 sctp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec09.sh new file mode 100644 index 000000000..310baf4bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec09 sctp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec09 sctp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec09 sctp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec10.sh new file mode 100644 index 000000000..8124c009b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec10 sctp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec10 sctp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec10 sctp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec11.sh new file mode 100644 index 000000000..8c29cb358 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec11 sctp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec11 sctp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec11 sctp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec12.sh new file mode 100644 index 000000000..20508fcdb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec12 sctp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec12 sctp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec12 sctp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec13.sh new file mode 100644 index 000000000..bd2ad2134 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec13 sctp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec13 sctp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec13 sctp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec14.sh new file mode 100644 index 000000000..3f469dac4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec14 sctp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec14 sctp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec14 sctp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec15.sh new file mode 100644 index 000000000..a8dca8db8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec15 sctp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec15 sctp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec15 sctp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec16.sh new file mode 100644 index 000000000..a21f5e83d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec16 sctp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec16 sctp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec16 sctp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec17.sh new file mode 100644 index 000000000..f44efee08 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec17 sctp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec17 sctp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec17 sctp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec18.sh new file mode 100644 index 000000000..f30736fef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec18 sctp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec18 sctp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec18 sctp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec19.sh new file mode 100644 index 000000000..2caed48da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec19 sctp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec19 sctp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec19 sctp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec20.sh new file mode 100644 index 000000000..6796757e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec20 sctp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec20 sctp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec20 sctp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec21.sh new file mode 100644 index 000000000..4e4c23fb6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec21 sctp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec21 sctp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec21 sctp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec22.sh new file mode 100644 index 000000000..6d2f76801 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec22 sctp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec22 sctp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec22 sctp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec23.sh new file mode 100644 index 000000000..beb0c2fd4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec23 sctp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec23 sctp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec23 sctp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec24.sh new file mode 100644 index 000000000..b3120acda --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec24 sctp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec24 sctp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec24 sctp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec25.sh new file mode 100644 index 000000000..92b6e75f3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec25 sctp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec25 sctp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec25 sctp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec26.sh new file mode 100644 index 000000000..a454ed411 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec26 sctp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec26 sctp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec26 sctp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec27.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec27.sh new file mode 100644 index 000000000..ac777f103 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec27 sctp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec27 sctp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec27 sctp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec28.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec28.sh new file mode 100644 index 000000000..013f3ca37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec28 sctp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec28 sctp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec28 sctp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec29.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec29.sh new file mode 100644 index 000000000..801e2d108 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec29 sctp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec29 sctp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec29 sctp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec30.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec30.sh new file mode 100644 index 000000000..0b01bbbb7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec30 sctp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec30 sctp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec30 sctp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec31.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec31.sh new file mode 100644 index 000000000..facde4c5f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec31 sctp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec31 sctp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec31 sctp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec32.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec32.sh new file mode 100644 index 000000000..e1b0e33e6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec32 sctp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec32 sctp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec32 sctp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec33.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec33.sh new file mode 100644 index 000000000..f1f828b72 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec33 sctp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec33 sctp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec33 sctp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec34.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec34.sh new file mode 100644 index 000000000..2e49e06bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec34 sctp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec34 sctp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec34 sctp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec35.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec35.sh new file mode 100644 index 000000000..e560ef9c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec35 sctp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec35 sctp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec35 sctp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec36.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec36.sh new file mode 100644 index 000000000..9bd6031e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec36 sctp_ipsec.sh -p esp -m beet -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec36 sctp_ipsec.sh -p esp -m beet -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec36 sctp_ipsec.sh -p esp -m beet -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti01.sh new file mode 100644 index 000000000..9ad9c316d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti01 sctp_ipsec_vti.sh -p ah -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti01 sctp_ipsec_vti.sh -p ah -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti01 sctp_ipsec_vti.sh -p ah -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti02.sh new file mode 100644 index 000000000..3b1d81bfd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti02 sctp_ipsec_vti.sh -p esp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti02 sctp_ipsec_vti.sh -p esp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti02 sctp_ipsec_vti.sh -p esp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti04.sh new file mode 100644 index 000000000..43f234761 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti04 sctp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti04 sctp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti04 sctp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti05.sh new file mode 100644 index 000000000..cd48ace98 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti05 sctp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti05 sctp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti05 sctp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti06.sh new file mode 100644 index 000000000..8df88d570 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti06 sctp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti06 sctp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti06 sctp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti07.sh new file mode 100644 index 000000000..6aacf924a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti07 sctp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti07 sctp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti07 sctp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti08.sh new file mode 100644 index 000000000..007a50941 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti08 sctp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti08 sctp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti08 sctp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti09.sh new file mode 100644 index 000000000..6c09c879e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti09 sctp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti09 sctp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti09 sctp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti10.sh new file mode 100644 index 000000000..edafe7ee3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti10 sctp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti10 sctp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti10 sctp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti11.sh new file mode 100644 index 000000000..bc4af2296 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti11 sctp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti11 sctp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti11 sctp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti12.sh new file mode 100644 index 000000000..166d1cdcb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti12 sctp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti12 sctp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti12 sctp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti13.sh new file mode 100644 index 000000000..3c4a52efc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti13 sctp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti13 sctp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti13 sctp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti14.sh new file mode 100644 index 000000000..44012ee23 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti14 sctp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti14 sctp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti14 sctp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti15.sh new file mode 100644 index 000000000..7758e5c4b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti15 sctp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti15 sctp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti15 sctp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti16.sh new file mode 100644 index 000000000..8e903deda --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti16 sctp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti16 sctp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti16 sctp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti17.sh new file mode 100644 index 000000000..5cecbf1d2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp4_ipsec_vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp4_ipsec_vti17 sctp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp4_ipsec_vti17 sctp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp4_ipsec_vti17 sctp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec01.sh new file mode 100644 index 000000000..bb4fe7ab6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec01 sctp_ipsec.sh -6 -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec01 sctp_ipsec.sh -6 -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec01 sctp_ipsec.sh -6 -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec02.sh new file mode 100644 index 000000000..7a859ff7e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec02 sctp_ipsec.sh -6 -p ah -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec02 sctp_ipsec.sh -6 -p ah -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec02 sctp_ipsec.sh -6 -p ah -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec03.sh new file mode 100644 index 000000000..9882129a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec03 sctp_ipsec.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec03 sctp_ipsec.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec03 sctp_ipsec.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec04.sh new file mode 100644 index 000000000..63765a7a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec04 sctp_ipsec.sh -6 -p esp -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec04 sctp_ipsec.sh -6 -p esp -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec04 sctp_ipsec.sh -6 -p esp -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec05.sh new file mode 100644 index 000000000..aa906e6d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec05 sctp_ipsec.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec05 sctp_ipsec.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec05 sctp_ipsec.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec06.sh new file mode 100644 index 000000000..6707b7016 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec06 sctp_ipsec.sh -6 -p comp -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec06 sctp_ipsec.sh -6 -p comp -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec06 sctp_ipsec.sh -6 -p comp -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec07.sh new file mode 100644 index 000000000..13af46ebc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec07 sctp_ipsec.sh -6 -p comp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec07 sctp_ipsec.sh -6 -p comp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec07 sctp_ipsec.sh -6 -p comp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec08.sh new file mode 100644 index 000000000..6b037da5e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec08 sctp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec08 sctp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec08 sctp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec09.sh new file mode 100644 index 000000000..ef1a192b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec09 sctp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec09 sctp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec09 sctp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec10.sh new file mode 100644 index 000000000..685d68dfb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec10 sctp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec10 sctp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec10 sctp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec11.sh new file mode 100644 index 000000000..072418faa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec11 sctp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec11 sctp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec11 sctp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec12.sh new file mode 100644 index 000000000..8a5b4486a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec12 sctp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec12 sctp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec12 sctp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec13.sh new file mode 100644 index 000000000..cfca93dd8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec13 sctp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec13 sctp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec13 sctp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec14.sh new file mode 100644 index 000000000..6e228b087 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec14 sctp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec14 sctp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec14 sctp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec15.sh new file mode 100644 index 000000000..bb24aa319 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec15 sctp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec15 sctp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec15 sctp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec16.sh new file mode 100644 index 000000000..b3b73024d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec16 sctp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec16 sctp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec16 sctp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec17.sh new file mode 100644 index 000000000..e9e4f4ab9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec17 sctp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec17 sctp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec17 sctp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec18.sh new file mode 100644 index 000000000..714bb1789 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec18 sctp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec18 sctp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec18 sctp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec19.sh new file mode 100644 index 000000000..4004ae032 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec19 sctp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec19 sctp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec19 sctp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec20.sh new file mode 100644 index 000000000..32b0c8989 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec20 sctp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec20 sctp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec20 sctp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec21.sh new file mode 100644 index 000000000..72c40fab3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec21 sctp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec21 sctp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec21 sctp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec22.sh new file mode 100644 index 000000000..486a66362 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec22 sctp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec22 sctp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec22 sctp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec23.sh new file mode 100644 index 000000000..186635924 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec23 sctp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec23 sctp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec23 sctp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec24.sh new file mode 100644 index 000000000..476ef0aa0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec24 sctp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec24 sctp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec24 sctp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec25.sh new file mode 100644 index 000000000..4cbf43018 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec25 sctp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec25 sctp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec25 sctp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec26.sh new file mode 100644 index 000000000..3decdeb87 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec26 sctp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec26 sctp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec26 sctp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec27.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec27.sh new file mode 100644 index 000000000..6812ae400 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec27 sctp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec27 sctp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec27 sctp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec28.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec28.sh new file mode 100644 index 000000000..4c05f6120 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec28 sctp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec28 sctp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec28 sctp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec29.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec29.sh new file mode 100644 index 000000000..5696639c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec29 sctp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec29 sctp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec29 sctp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec30.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec30.sh new file mode 100644 index 000000000..edfba42b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec30 sctp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec30 sctp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec30 sctp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec31.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec31.sh new file mode 100644 index 000000000..0a8b4ed80 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec31 sctp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec31 sctp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec31 sctp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec32.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec32.sh new file mode 100644 index 000000000..bf886186b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec32 sctp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec32 sctp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec32 sctp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec33.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec33.sh new file mode 100644 index 000000000..6ad76ab0c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec33 sctp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec33 sctp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec33 sctp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec34.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec34.sh new file mode 100644 index 000000000..310ec5bb9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec34 sctp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec34 sctp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec34 sctp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec35.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec35.sh new file mode 100644 index 000000000..b589d6b47 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec35 sctp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec35 sctp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec35 sctp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec36.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec36.sh new file mode 100644 index 000000000..7aaa833c1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec36 sctp_ipsec.sh -6 -p esp -m beet -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec36 sctp_ipsec.sh -6 -p esp -m beet -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec36 sctp_ipsec.sh -6 -p esp -m beet -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti01.sh new file mode 100644 index 000000000..80203c856 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti01 sctp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti01 sctp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti01 sctp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti02.sh new file mode 100644 index 000000000..639604709 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti02 sctp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti02 sctp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti02 sctp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti04.sh new file mode 100644 index 000000000..7d48cb8e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti04 sctp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti04 sctp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti04 sctp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti05.sh new file mode 100644 index 000000000..f4c627876 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti05 sctp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti05 sctp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti05 sctp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti06.sh new file mode 100644 index 000000000..222d3acfa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti06 sctp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti06 sctp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti06 sctp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti07.sh new file mode 100644 index 000000000..0d3bb57b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti07 sctp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti07 sctp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti07 sctp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti08.sh new file mode 100644 index 000000000..e6f0c925b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti08 sctp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti08 sctp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti08 sctp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti09.sh new file mode 100644 index 000000000..59c7d8ae3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti09 sctp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti09 sctp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti09 sctp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti10.sh new file mode 100644 index 000000000..26a99221b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti10 sctp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti10 sctp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti10 sctp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti11.sh new file mode 100644 index 000000000..db08ad914 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti11 sctp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti11 sctp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti11 sctp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti12.sh new file mode 100644 index 000000000..95f63ad74 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti12 sctp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti12 sctp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti12 sctp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti13.sh new file mode 100644 index 000000000..4ef096fc3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti13 sctp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti13 sctp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti13 sctp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti14.sh new file mode 100644 index 000000000..4e73fe1f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti14 sctp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti14 sctp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti14 sctp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti15.sh new file mode 100644 index 000000000..5a21593b8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti15 sctp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti15 sctp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti15 sctp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti16.sh new file mode 100644 index 000000000..9b07c4270 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti16 sctp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti16 sctp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti16 sctp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti17.sh new file mode 100644 index 000000000..e441bb9c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_sctp/oe_test_ltp_net_stress_ipsec_sctp_sctp6_ipsec_vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_sctp sctp6_ipsec_vti17 sctp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_sctp -s sctp6_ipsec_vti17 sctp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_sctp sctp6_ipsec_vti17 sctp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec01.sh new file mode 100644 index 000000000..60315e2db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec01 tcp_ipsec.sh -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec01 tcp_ipsec.sh -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec01 tcp_ipsec.sh -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec02.sh new file mode 100644 index 000000000..cd39440a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec02 tcp_ipsec.sh -p ah -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec02 tcp_ipsec.sh -p ah -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec02 tcp_ipsec.sh -p ah -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec03.sh new file mode 100644 index 000000000..ad569cba3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec03 tcp_ipsec.sh -p ah -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec03 tcp_ipsec.sh -p ah -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec03 tcp_ipsec.sh -p ah -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec04.sh new file mode 100644 index 000000000..5e92ecbb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec04 tcp_ipsec.sh -p esp -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec04 tcp_ipsec.sh -p esp -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec04 tcp_ipsec.sh -p esp -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec05.sh new file mode 100644 index 000000000..2545431cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec05 tcp_ipsec.sh -p esp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec05 tcp_ipsec.sh -p esp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec05 tcp_ipsec.sh -p esp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec06.sh new file mode 100644 index 000000000..c62ca481d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec06 tcp_ipsec.sh -p comp -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec06 tcp_ipsec.sh -p comp -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec06 tcp_ipsec.sh -p comp -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec07.sh new file mode 100644 index 000000000..5b0a75b1d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec07 tcp_ipsec.sh -p comp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec07 tcp_ipsec.sh -p comp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec07 tcp_ipsec.sh -p comp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec08.sh new file mode 100644 index 000000000..ad4637823 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec08 tcp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec08 tcp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec08 tcp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec09.sh new file mode 100644 index 000000000..6ea77ff88 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec09 tcp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec09 tcp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec09 tcp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec10.sh new file mode 100644 index 000000000..bce7d61bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec10 tcp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec10 tcp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec10 tcp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec11.sh new file mode 100644 index 000000000..e52fe4839 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec11 tcp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec11 tcp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec11 tcp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec12.sh new file mode 100644 index 000000000..807a3823f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec12 tcp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec12 tcp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec12 tcp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec13.sh new file mode 100644 index 000000000..a7c4fe9e6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec13 tcp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec13 tcp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec13 tcp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec14.sh new file mode 100644 index 000000000..ffbaa5d52 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec14 tcp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec14 tcp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec14 tcp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec15.sh new file mode 100644 index 000000000..80368b4fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec15 tcp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec15 tcp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec15 tcp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec16.sh new file mode 100644 index 000000000..cdbef4a8b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec16 tcp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec16 tcp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec16 tcp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec17.sh new file mode 100644 index 000000000..7d2ec28e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec17 tcp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec17 tcp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec17 tcp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec18.sh new file mode 100644 index 000000000..2d1daad5a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec18 tcp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec18 tcp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec18 tcp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec19.sh new file mode 100644 index 000000000..99155b246 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec19 tcp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec19 tcp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec19 tcp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec20.sh new file mode 100644 index 000000000..67c2787b5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec20 tcp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec20 tcp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec20 tcp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec21.sh new file mode 100644 index 000000000..6dde2b69a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec21 tcp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec21 tcp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec21 tcp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec22.sh new file mode 100644 index 000000000..f02f869a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec22 tcp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec22 tcp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec22 tcp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec23.sh new file mode 100644 index 000000000..173c3bd06 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec23 tcp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec23 tcp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec23 tcp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec24.sh new file mode 100644 index 000000000..ad1defd6a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec24 tcp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec24 tcp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec24 tcp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec25.sh new file mode 100644 index 000000000..ba0e6e4cc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec25 tcp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec25 tcp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec25 tcp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec26.sh new file mode 100644 index 000000000..4c0bca9e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec26 tcp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec26 tcp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec26 tcp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec27.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec27.sh new file mode 100644 index 000000000..16211aef4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec27 tcp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec27 tcp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec27 tcp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec28.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec28.sh new file mode 100644 index 000000000..4bb02297c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec28 tcp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec28 tcp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec28 tcp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec29.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec29.sh new file mode 100644 index 000000000..f99785874 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec29 tcp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec29 tcp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec29 tcp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec30.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec30.sh new file mode 100644 index 000000000..13dc5f307 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec30 tcp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec30 tcp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec30 tcp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec31.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec31.sh new file mode 100644 index 000000000..32cab5335 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec31 tcp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec31 tcp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec31 tcp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec32.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec32.sh new file mode 100644 index 000000000..2bd13f470 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec32 tcp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec32 tcp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec32 tcp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec33.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec33.sh new file mode 100644 index 000000000..ff6c28e55 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec33 tcp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec33 tcp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec33 tcp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec34.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec34.sh new file mode 100644 index 000000000..63bfb9a3d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec34 tcp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec34 tcp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec34 tcp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec35.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec35.sh new file mode 100644 index 000000000..2b4008bd6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec35 tcp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec35 tcp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec35 tcp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec36.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec36.sh new file mode 100644 index 000000000..48f1ed041 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec36 tcp_ipsec.sh -p esp -m beet -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec36 tcp_ipsec.sh -p esp -m beet -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec36 tcp_ipsec.sh -p esp -m beet -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti01.sh new file mode 100644 index 000000000..f3413ec71 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti01 tcp_ipsec_vti.sh -p ah -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti01 tcp_ipsec_vti.sh -p ah -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti01 tcp_ipsec_vti.sh -p ah -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti02.sh new file mode 100644 index 000000000..db23c1c66 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti02 tcp_ipsec_vti.sh -p esp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti02 tcp_ipsec_vti.sh -p esp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti02 tcp_ipsec_vti.sh -p esp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti04.sh new file mode 100644 index 000000000..a70f5059b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti04 tcp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti04 tcp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti04 tcp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti05.sh new file mode 100644 index 000000000..dfce057be --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti05 tcp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti05 tcp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti05 tcp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti06.sh new file mode 100644 index 000000000..cb579ed34 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti06 tcp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti06 tcp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti06 tcp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti07.sh new file mode 100644 index 000000000..23f484d10 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti07 tcp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti07 tcp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti07 tcp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti08.sh new file mode 100644 index 000000000..0c47ebed3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti08 tcp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti08 tcp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti08 tcp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti09.sh new file mode 100644 index 000000000..fd55d05b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti09 tcp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti09 tcp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti09 tcp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti10.sh new file mode 100644 index 000000000..6ac2f274f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti10 tcp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti10 tcp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti10 tcp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti11.sh new file mode 100644 index 000000000..b2ceae9d9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti11 tcp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti11 tcp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti11 tcp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti12.sh new file mode 100644 index 000000000..6474e86d3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti12 tcp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti12 tcp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti12 tcp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti13.sh new file mode 100644 index 000000000..c569572d9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti13 tcp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti13 tcp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti13 tcp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti14.sh new file mode 100644 index 000000000..ae0fdf369 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti14 tcp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti14 tcp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti14 tcp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti15.sh new file mode 100644 index 000000000..ba6830cfd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti15 tcp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti15 tcp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti15 tcp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti16.sh new file mode 100644 index 000000000..a974d42fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti16 tcp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti16 tcp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti16 tcp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti17.sh new file mode 100644 index 000000000..bfe90cabe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp4_ipsec_vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp4_ipsec_vti17 tcp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp4_ipsec_vti17 tcp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp4_ipsec_vti17 tcp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec01.sh new file mode 100644 index 000000000..8ca1a2ac1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec01 tcp_ipsec.sh -6 -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec01 tcp_ipsec.sh -6 -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec01 tcp_ipsec.sh -6 -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec02.sh new file mode 100644 index 000000000..21cd63c34 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec02 tcp_ipsec.sh -6 -p ah -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec02 tcp_ipsec.sh -6 -p ah -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec02 tcp_ipsec.sh -6 -p ah -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec03.sh new file mode 100644 index 000000000..ad58701da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec03 tcp_ipsec.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec03 tcp_ipsec.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec03 tcp_ipsec.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec04.sh new file mode 100644 index 000000000..da367b212 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec04 tcp_ipsec.sh -6 -p esp -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec04 tcp_ipsec.sh -6 -p esp -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec04 tcp_ipsec.sh -6 -p esp -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec05.sh new file mode 100644 index 000000000..43623cbac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec05 tcp_ipsec.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec05 tcp_ipsec.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec05 tcp_ipsec.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec06.sh new file mode 100644 index 000000000..63d3992ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec06 tcp_ipsec.sh -6 -p comp -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec06 tcp_ipsec.sh -6 -p comp -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec06 tcp_ipsec.sh -6 -p comp -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec07.sh new file mode 100644 index 000000000..d7cc470f6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec07 tcp_ipsec.sh -6 -p comp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec07 tcp_ipsec.sh -6 -p comp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec07 tcp_ipsec.sh -6 -p comp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec08.sh new file mode 100644 index 000000000..d971ebafb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec08 tcp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec08 tcp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec08 tcp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec09.sh new file mode 100644 index 000000000..4110b3555 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec09 tcp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec09 tcp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec09 tcp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec10.sh new file mode 100644 index 000000000..187639365 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec10 tcp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec10 tcp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec10 tcp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec11.sh new file mode 100644 index 000000000..c2c418b6f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec11 tcp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec11 tcp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec11 tcp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec12.sh new file mode 100644 index 000000000..78a048528 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec12 tcp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec12 tcp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec12 tcp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec13.sh new file mode 100644 index 000000000..7da5c21b8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec13 tcp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec13 tcp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec13 tcp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec14.sh new file mode 100644 index 000000000..2040173a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec14 tcp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec14 tcp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec14 tcp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec15.sh new file mode 100644 index 000000000..106850d7c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec15 tcp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec15 tcp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec15 tcp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec16.sh new file mode 100644 index 000000000..909d30b94 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec16 tcp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec16 tcp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec16 tcp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec17.sh new file mode 100644 index 000000000..350ecb1d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec17 tcp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec17 tcp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec17 tcp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec18.sh new file mode 100644 index 000000000..c62f39d4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec18 tcp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec18 tcp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec18 tcp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec19.sh new file mode 100644 index 000000000..97fb825df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec19 tcp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec19 tcp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec19 tcp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec20.sh new file mode 100644 index 000000000..168fc8771 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec20 tcp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec20 tcp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec20 tcp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec21.sh new file mode 100644 index 000000000..772f654f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec21 tcp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec21 tcp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec21 tcp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec22.sh new file mode 100644 index 000000000..b4710a752 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec22 tcp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec22 tcp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec22 tcp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec23.sh new file mode 100644 index 000000000..33a70067c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec23 tcp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec23 tcp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec23 tcp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec24.sh new file mode 100644 index 000000000..4cc22e35a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec24 tcp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec24 tcp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec24 tcp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec25.sh new file mode 100644 index 000000000..25f473ef8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec25 tcp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec25 tcp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec25 tcp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec26.sh new file mode 100644 index 000000000..784d4cb1a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec26 tcp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec26 tcp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec26 tcp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec27.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec27.sh new file mode 100644 index 000000000..aa93f5416 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec27 tcp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec27 tcp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec27 tcp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec28.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec28.sh new file mode 100644 index 000000000..b33949254 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec28 tcp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec28 tcp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec28 tcp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec29.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec29.sh new file mode 100644 index 000000000..e75b0acc7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec29 tcp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec29 tcp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec29 tcp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec30.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec30.sh new file mode 100644 index 000000000..8698bdd2c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec30 tcp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec30 tcp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec30 tcp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec31.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec31.sh new file mode 100644 index 000000000..1fd2cdbaa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec31 tcp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec31 tcp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec31 tcp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec32.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec32.sh new file mode 100644 index 000000000..b40a30878 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec32 tcp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec32 tcp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec32 tcp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec33.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec33.sh new file mode 100644 index 000000000..b823d6aea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec33 tcp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec33 tcp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec33 tcp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec34.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec34.sh new file mode 100644 index 000000000..769057eba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec34 tcp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec34 tcp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec34 tcp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec35.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec35.sh new file mode 100644 index 000000000..eedcbbe2f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec35 tcp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec35 tcp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec35 tcp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec36.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec36.sh new file mode 100644 index 000000000..b3509fa12 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec36 tcp_ipsec.sh -6 -p esp -m beet -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec36 tcp_ipsec.sh -6 -p esp -m beet -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec36 tcp_ipsec.sh -6 -p esp -m beet -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti01.sh new file mode 100644 index 000000000..7661fae08 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti01 tcp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti01 tcp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti01 tcp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti02.sh new file mode 100644 index 000000000..0c97d3481 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti02 tcp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti02 tcp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti02 tcp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti04.sh new file mode 100644 index 000000000..2422127d8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti04 tcp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti04 tcp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti04 tcp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti05.sh new file mode 100644 index 000000000..e0009225f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti05 tcp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti05 tcp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti05 tcp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti06.sh new file mode 100644 index 000000000..244949fbe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti06 tcp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti06 tcp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti06 tcp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti07.sh new file mode 100644 index 000000000..76a5db4c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti07 tcp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti07 tcp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti07 tcp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti08.sh new file mode 100644 index 000000000..ba4761755 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti08 tcp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti08 tcp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti08 tcp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti09.sh new file mode 100644 index 000000000..774a78f37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti09 tcp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti09 tcp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti09 tcp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti10.sh new file mode 100644 index 000000000..e36c5c5f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti10 tcp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti10 tcp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti10 tcp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti11.sh new file mode 100644 index 000000000..4cd46cc98 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti11 tcp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti11 tcp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti11 tcp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti12.sh new file mode 100644 index 000000000..9b0424c02 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti12 tcp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti12 tcp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti12 tcp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti13.sh new file mode 100644 index 000000000..98056e9f2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti13 tcp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti13 tcp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti13 tcp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti14.sh new file mode 100644 index 000000000..074db4dc9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti14 tcp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti14 tcp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti14 tcp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti15.sh new file mode 100644 index 000000000..77643d6d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti15 tcp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti15 tcp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti15 tcp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti16.sh new file mode 100644 index 000000000..a54407dbd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti16 tcp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti16 tcp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti16 tcp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti17.sh new file mode 100644 index 000000000..e4ee6b8b4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_tcp/oe_test_ltp_net_stress_ipsec_tcp_tcp6_ipsec_vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_tcp tcp6_ipsec_vti17 tcp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_tcp -s tcp6_ipsec_vti17 tcp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_tcp tcp6_ipsec_vti17 tcp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65535:R65535 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec01.sh new file mode 100644 index 000000000..64badeff2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec01 udp_ipsec.sh -s 100:1000:65507:R65507 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec01 udp_ipsec.sh -s 100:1000:65507:R65507 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec01 udp_ipsec.sh -s 100:1000:65507:R65507 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec02.sh new file mode 100644 index 000000000..6b84c6f72 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec02 udp_ipsec.sh -p ah -m transport -s 100:1000:65483:R65483 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec02 udp_ipsec.sh -p ah -m transport -s 100:1000:65483:R65483 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec02 udp_ipsec.sh -p ah -m transport -s 100:1000:65483:R65483 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec03.sh new file mode 100644 index 000000000..73995f76d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec03 udp_ipsec.sh -p ah -m tunnel -s 100:1000:65463:R65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec03 udp_ipsec.sh -p ah -m tunnel -s 100:1000:65463:R65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec03 udp_ipsec.sh -p ah -m tunnel -s 100:1000:65463:R65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec04.sh new file mode 100644 index 000000000..0d2ca232b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec04 udp_ipsec.sh -p esp -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec04 udp_ipsec.sh -p esp -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec04 udp_ipsec.sh -p esp -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec05.sh new file mode 100644 index 000000000..693531b6c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec05 udp_ipsec.sh -p esp -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec05 udp_ipsec.sh -p esp -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec05 udp_ipsec.sh -p esp -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec06.sh new file mode 100644 index 000000000..951847f50 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec06 udp_ipsec.sh -p comp -m transport -s 100:1000:65000:R65000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec06 udp_ipsec.sh -p comp -m transport -s 100:1000:65000:R65000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec06 udp_ipsec.sh -p comp -m transport -s 100:1000:65000:R65000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec07.sh new file mode 100644 index 000000000..dfc083b8f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec07 udp_ipsec.sh -p comp -m tunnel -s 100:1000:65000:R65000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec07 udp_ipsec.sh -p comp -m tunnel -s 100:1000:65000:R65000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec07 udp_ipsec.sh -p comp -m tunnel -s 100:1000:65000:R65000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec08.sh new file mode 100644 index 000000000..af644e957 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec08 udp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec08 udp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec08 udp_ipsec.sh -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec09.sh new file mode 100644 index 000000000..4ba1ebebc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec09 udp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec09 udp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec09 udp_ipsec.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec10.sh new file mode 100644 index 000000000..176e29842 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec10 udp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec10 udp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec10 udp_ipsec.sh -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec11.sh new file mode 100644 index 000000000..636d9ece9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec11 udp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec11 udp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec11 udp_ipsec.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec12.sh new file mode 100644 index 000000000..458bcfd95 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec12 udp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec12 udp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec12 udp_ipsec.sh -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec13.sh new file mode 100644 index 000000000..3a0b0c196 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec13 udp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec13 udp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec13 udp_ipsec.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec14.sh new file mode 100644 index 000000000..dfb5f2f4d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec14 udp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec14 udp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec14 udp_ipsec.sh -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec15.sh new file mode 100644 index 000000000..979ba60a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec15 udp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec15 udp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec15 udp_ipsec.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec16.sh new file mode 100644 index 000000000..1976c3e6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec16 udp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec16 udp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec16 udp_ipsec.sh -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec17.sh new file mode 100644 index 000000000..44904fcbb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec17 udp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec17 udp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec17 udp_ipsec.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec18.sh new file mode 100644 index 000000000..b8ec4a632 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec18 udp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec18 udp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec18 udp_ipsec.sh -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec19.sh new file mode 100644 index 000000000..d525590b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec19 udp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec19 udp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec19 udp_ipsec.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec20.sh new file mode 100644 index 000000000..7542c3fc6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec20 udp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec20 udp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec20 udp_ipsec.sh -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec21.sh new file mode 100644 index 000000000..a76cb933e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec21 udp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec21 udp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec21 udp_ipsec.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec22.sh new file mode 100644 index 000000000..5b0e50c3b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec22 udp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec22 udp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec22 udp_ipsec.sh -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec23.sh new file mode 100644 index 000000000..7e4acb03c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec23 udp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec23 udp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec23 udp_ipsec.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec24.sh new file mode 100644 index 000000000..7826b7178 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec24 udp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec24 udp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec24 udp_ipsec.sh -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec25.sh new file mode 100644 index 000000000..065db829f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec25 udp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec25 udp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec25 udp_ipsec.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec26.sh new file mode 100644 index 000000000..0b65bc2a3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec26 udp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec26 udp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec26 udp_ipsec.sh -p esp -a sha1 -e cast5 -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec27.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec27.sh new file mode 100644 index 000000000..d1260115e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec27 udp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec27 udp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec27 udp_ipsec.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec28.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec28.sh new file mode 100644 index 000000000..94713ce7b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec28 udp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:1000:65470:R65470 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec28 udp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:1000:65470:R65470 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec28 udp_ipsec.sh -p esp -a sha256 -e blowfish -m transport -s 100:1000:65470:R65470 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec29.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec29.sh new file mode 100644 index 000000000..be52288b8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec29 udp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65426:R65426 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec29 udp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65426:R65426 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec29 udp_ipsec.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65426:R65426 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec30.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec30.sh new file mode 100644 index 000000000..73e0e4138 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec30 udp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:1000:65446:R65446 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec30 udp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:1000:65446:R65446 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec30 udp_ipsec.sh -p esp -a sha384 -e twofish -m transport -s 100:1000:65446:R65446 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec31.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec31.sh new file mode 100644 index 000000000..02ed1432f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec31 udp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65426:R65426 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec31 udp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65426:R65426 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec31 udp_ipsec.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65426:R65426 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec32.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec32.sh new file mode 100644 index 000000000..de2b853c6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec32 udp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:1000:65446:R65446 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec32 udp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:1000:65446:R65446 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec32 udp_ipsec.sh -p esp -a sha512 -e camellia -m transport -s 100:1000:65446:R65446 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec33.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec33.sh new file mode 100644 index 000000000..a03a58fdb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec33 udp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65426:R65426 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec33 udp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65426:R65426 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec33 udp_ipsec.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65426:R65426 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec34.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec34.sh new file mode 100644 index 000000000..1767a544a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec34 udp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:1000:65446:R65446 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec34 udp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:1000:65446:R65446 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec34 udp_ipsec.sh -p esp -a rmd160 -e serpent -m transport -s 100:1000:65446:R65446 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec35.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec35.sh new file mode 100644 index 000000000..8ccd61949 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec35 udp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65426:R65426 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec35 udp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65426:R65426 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec35 udp_ipsec.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65426:R65426 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec36.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec36.sh new file mode 100644 index 000000000..3a2280ccc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec36 udp_ipsec.sh -p esp -m beet -s 100:1000:65446:R65446 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec36 udp_ipsec.sh -p esp -m beet -s 100:1000:65446:R65446 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec36 udp_ipsec.sh -p esp -m beet -s 100:1000:65446:R65446 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti01.sh new file mode 100644 index 000000000..4c5b9c0fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti01 udp_ipsec_vti.sh -p ah -m tunnel -s 100:1000:65463:R65463 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti01 udp_ipsec_vti.sh -p ah -m tunnel -s 100:1000:65463:R65463 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti01 udp_ipsec_vti.sh -p ah -m tunnel -s 100:1000:65463:R65463 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti02.sh new file mode 100644 index 000000000..b1e2f8981 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti02 udp_ipsec_vti.sh -p esp -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti02 udp_ipsec_vti.sh -p esp -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti02 udp_ipsec_vti.sh -p esp -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti03.sh new file mode 100644 index 000000000..d0a90408c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti03 udp_ipsec_vti.sh -p comp -m tunnel -s 1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti03 udp_ipsec_vti.sh -p comp -m tunnel -s 1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti03 udp_ipsec_vti.sh -p comp -m tunnel -s 1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti04.sh new file mode 100644 index 000000000..b904851da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti04 udp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti04 udp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti04 udp_ipsec_vti.sh -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti05.sh new file mode 100644 index 000000000..7751f6d9d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti05 udp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti05 udp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti05 udp_ipsec_vti.sh -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti06.sh new file mode 100644 index 000000000..5314602ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti06 udp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti06 udp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti06 udp_ipsec_vti.sh -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti07.sh new file mode 100644 index 000000000..21f094d8d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti07 udp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti07 udp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti07 udp_ipsec_vti.sh -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti08.sh new file mode 100644 index 000000000..403ab68a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti08 udp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti08 udp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti08 udp_ipsec_vti.sh -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti09.sh new file mode 100644 index 000000000..9fc595bf8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti09 udp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti09 udp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti09 udp_ipsec_vti.sh -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti10.sh new file mode 100644 index 000000000..9301ab950 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti10 udp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti10 udp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti10 udp_ipsec_vti.sh -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti11.sh new file mode 100644 index 000000000..a54a46c80 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti11 udp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti11 udp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti11 udp_ipsec_vti.sh -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti12.sh new file mode 100644 index 000000000..d6833c28e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti12 udp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti12 udp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti12 udp_ipsec_vti.sh -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti13.sh new file mode 100644 index 000000000..73746ad49 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti13 udp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65450:R65450 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti13 udp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65450:R65450 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti13 udp_ipsec_vti.sh -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65450:R65450 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti14.sh new file mode 100644 index 000000000..3720ce146 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti14 udp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65426:R65426 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti14 udp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65426:R65426 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti14 udp_ipsec_vti.sh -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65426:R65426 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti15.sh new file mode 100644 index 000000000..4d4d17c45 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti15 udp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65426:R65426 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti15 udp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65426:R65426 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti15 udp_ipsec_vti.sh -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65426:R65426 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti16.sh new file mode 100644 index 000000000..1890ecd21 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti16 udp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65426:R65426 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti16 udp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65426:R65426 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti16 udp_ipsec_vti.sh -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65426:R65426 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti17.sh new file mode 100644 index 000000000..9ea369040 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp4_ipsec_vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp4_ipsec_vti17 udp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65426:R65426 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp4_ipsec_vti17 udp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65426:R65426 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp4_ipsec_vti17 udp_ipsec_vti.sh -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65426:R65426 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec01.sh new file mode 100644 index 000000000..766f7171d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec01 udp_ipsec.sh -6 -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec01 udp_ipsec.sh -6 -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec01 udp_ipsec.sh -6 -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec02.sh new file mode 100644 index 000000000..890005253 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec02 udp_ipsec.sh -6 -p ah -m transport -s 100:1000:65503:R65503 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec02 udp_ipsec.sh -6 -p ah -m transport -s 100:1000:65503:R65503 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec02 udp_ipsec.sh -6 -p ah -m transport -s 100:1000:65503:R65503 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec03.sh new file mode 100644 index 000000000..b87514d1a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec03 udp_ipsec.sh -6 -p ah -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec03 udp_ipsec.sh -6 -p ah -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec03 udp_ipsec.sh -6 -p ah -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec04.sh new file mode 100644 index 000000000..d9913e315 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec04 udp_ipsec.sh -6 -p esp -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec04 udp_ipsec.sh -6 -p esp -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec04 udp_ipsec.sh -6 -p esp -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec05.sh new file mode 100644 index 000000000..6f5c98bbf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec05 udp_ipsec.sh -6 -p esp -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec05 udp_ipsec.sh -6 -p esp -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec05 udp_ipsec.sh -6 -p esp -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec06.sh new file mode 100644 index 000000000..f8bd52bcd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec06 udp_ipsec.sh -6 -p comp -m transport -s 100:1000:65000:R65000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec06 udp_ipsec.sh -6 -p comp -m transport -s 100:1000:65000:R65000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec06 udp_ipsec.sh -6 -p comp -m transport -s 100:1000:65000:R65000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec07.sh new file mode 100644 index 000000000..611b0a9f6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec07 udp_ipsec.sh -6 -p comp -m tunnel -s 100:1000:65000:R65000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec07 udp_ipsec.sh -6 -p comp -m tunnel -s 100:1000:65000:R65000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec07 udp_ipsec.sh -6 -p comp -m tunnel -s 100:1000:65000:R65000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec08.sh new file mode 100644 index 000000000..0ed98f740 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec08 udp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec08 udp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec08 udp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec09.sh new file mode 100644 index 000000000..e17caa1d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec09 udp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec09 udp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec09 udp_ipsec.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec10.sh new file mode 100644 index 000000000..9d7deefbe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec10 udp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec10 udp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec10 udp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec11.sh new file mode 100644 index 000000000..5e5e8af3b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec11 udp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec11 udp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec11 udp_ipsec.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec12.sh new file mode 100644 index 000000000..14e07387b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec12 udp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec12 udp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec12 udp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec13.sh new file mode 100644 index 000000000..f7f9acf26 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec13 udp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec13 udp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec13 udp_ipsec.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec14.sh new file mode 100644 index 000000000..154d688ee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec14 udp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec14 udp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec14 udp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec15.sh new file mode 100644 index 000000000..43af713ae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec15 udp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec15 udp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec15 udp_ipsec.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec16.sh new file mode 100644 index 000000000..3c26ebd13 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec16 udp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec16 udp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec16 udp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec17.sh new file mode 100644 index 000000000..f76b3570b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec17 udp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec17 udp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec17 udp_ipsec.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec18.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec18.sh new file mode 100644 index 000000000..d3993af6f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec18 udp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec18 udp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec18 udp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec19.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec19.sh new file mode 100644 index 000000000..e9ff7703f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec19 udp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec19 udp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec19 udp_ipsec.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec20.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec20.sh new file mode 100644 index 000000000..15322815e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec20 udp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec20 udp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec20 udp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec21.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec21.sh new file mode 100644 index 000000000..31c54deb4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec21 udp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec21 udp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec21 udp_ipsec.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec22.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec22.sh new file mode 100644 index 000000000..7e28b9179 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec22 udp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec22 udp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec22 udp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec23.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec23.sh new file mode 100644 index 000000000..59ae4a181 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec23 udp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec23 udp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec23 udp_ipsec.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec24.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec24.sh new file mode 100644 index 000000000..8904e2539 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec24 udp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec24 udp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec24 udp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec25.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec25.sh new file mode 100644 index 000000000..b75307f07 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec25 udp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec25 udp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec25 udp_ipsec.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec26.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec26.sh new file mode 100644 index 000000000..17d23bdad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec26 udp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec26 udp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec26 udp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec27.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec27.sh new file mode 100644 index 000000000..c01bcefb4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec27 udp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec27 udp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec27 udp_ipsec.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec28.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec28.sh new file mode 100644 index 000000000..5c7858687 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec28 udp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:1000:65490:R65490 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec28 udp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:1000:65490:R65490 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec28 udp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m transport -s 100:1000:65490:R65490 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec29.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec29.sh new file mode 100644 index 000000000..b684734a3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec29 udp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec29 udp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec29 udp_ipsec.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec30.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec30.sh new file mode 100644 index 000000000..be52c7d7d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec30 udp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:1000:65462:R65462 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec30 udp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:1000:65462:R65462 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec30 udp_ipsec.sh -6 -p esp -a sha384 -e twofish -m transport -s 100:1000:65462:R65462 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec31.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec31.sh new file mode 100644 index 000000000..54a44f1b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec31 udp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec31 udp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec31 udp_ipsec.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec32.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec32.sh new file mode 100644 index 000000000..b08b24e4e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec32 udp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:1000:65462:R65462 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec32 udp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:1000:65462:R65462 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec32 udp_ipsec.sh -6 -p esp -a sha512 -e camellia -m transport -s 100:1000:65462:R65462 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec33.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec33.sh new file mode 100644 index 000000000..b8c4235c1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec33 udp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec33 udp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec33 udp_ipsec.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec34.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec34.sh new file mode 100644 index 000000000..7443f217d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec34 udp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:1000:65478:R65478 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec34 udp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:1000:65478:R65478 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec34 udp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m transport -s 100:1000:65478:R65478 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec35.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec35.sh new file mode 100644 index 000000000..bbb8da4fd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec35 udp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec35 udp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec35 udp_ipsec.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec36.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec36.sh new file mode 100644 index 000000000..640267568 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec36 udp_ipsec.sh -6 -p esp -m beet -s 100:1000:65478:R65478 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec36 udp_ipsec.sh -6 -p esp -m beet -s 100:1000:65478:R65478 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec36 udp_ipsec.sh -6 -p esp -m beet -s 100:1000:65478:R65478 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti01.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti01.sh new file mode 100644 index 000000000..46e5893d9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti01 udp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti01 udp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti01 udp_ipsec_vti.sh -6 -p ah -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti02.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti02.sh new file mode 100644 index 000000000..677bfff10 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti02 udp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti02 udp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti02 udp_ipsec_vti.sh -6 -p esp -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti03.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti03.sh new file mode 100644 index 000000000..1d66989c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti03 udp_ipsec_vti.sh -6 -p comp -m tunnel -s 1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti03 udp_ipsec_vti.sh -6 -p comp -m tunnel -s 1000 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti03 udp_ipsec_vti.sh -6 -p comp -m tunnel -s 1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti04.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti04.sh new file mode 100644 index 000000000..b90b2c4df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti04 udp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti04 udp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti04 udp_ipsec_vti.sh -6 -A rfc4106_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti05.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti05.sh new file mode 100644 index 000000000..297e3da50 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti05 udp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti05 udp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti05 udp_ipsec_vti.sh -6 -A rfc4106_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti06.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti06.sh new file mode 100644 index 000000000..094cb16f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti06 udp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti06 udp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti06 udp_ipsec_vti.sh -6 -A rfc4106_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti07.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti07.sh new file mode 100644 index 000000000..67ee9f827 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti07 udp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti07 udp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti07 udp_ipsec_vti.sh -6 -A rfc4309_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti08.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti08.sh new file mode 100644 index 000000000..4976879e6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti08 udp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti08 udp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti08 udp_ipsec_vti.sh -6 -A rfc4309_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti09.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti09.sh new file mode 100644 index 000000000..53002d9b8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti09 udp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti09 udp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti09 udp_ipsec_vti.sh -6 -A rfc4309_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti10.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti10.sh new file mode 100644 index 000000000..567d6bca0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti10 udp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti10 udp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti10 udp_ipsec_vti.sh -6 -A rfc4543_128 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti11.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti11.sh new file mode 100644 index 000000000..26555bbb1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti11 udp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti11 udp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti11 udp_ipsec_vti.sh -6 -A rfc4543_192 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti12.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti12.sh new file mode 100644 index 000000000..9eafeba97 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti12 udp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti12 udp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti12 udp_ipsec_vti.sh -6 -A rfc4543_256 -p esp_aead -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti13.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti13.sh new file mode 100644 index 000000000..81e2e0bc1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti13 udp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti13 udp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti13 udp_ipsec_vti.sh -6 -p esp -a sha1 -e cast5 -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti14.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti14.sh new file mode 100644 index 000000000..e564785c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti14 udp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti14 udp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti14 udp_ipsec_vti.sh -6 -p esp -a sha256 -e blowfish -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti15.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti15.sh new file mode 100644 index 000000000..e567009a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti15 udp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti15 udp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti15 udp_ipsec_vti.sh -6 -p esp -a sha384 -e twofish -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti16.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti16.sh new file mode 100644 index 000000000..63a92d517 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti16 udp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti16 udp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti16 udp_ipsec_vti.sh -6 -p esp -a sha512 -e camellia -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti17.sh b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti17.sh new file mode 100644 index 000000000..3d9d8b5ac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_ipsec_udp/oe_test_ltp_net_stress_ipsec_udp_udp6_ipsec_vti17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_ipsec_udp udp6_ipsec_vti17 udp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65527:R65527 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.ipsec_udp -s udp6_ipsec_vti17 udp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65527:R65527 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.ipsec_udp udp6_ipsec_vti17 udp_ipsec_vti.sh -6 -p esp -a rmd160 -e serpent -m tunnel -s 100:1000:65527:R65527 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-multiple-socket.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-multiple-socket.sh new file mode 100644 index 000000000..5a70c100a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-multiple-socket.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-group-multiple-socket mcast-group-multiple-socket.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-group-multiple-socket mcast-group-multiple-socket.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-group-multiple-socket mcast-group-multiple-socket.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-same-group.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-same-group.sh new file mode 100644 index 000000000..8860cd506 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-same-group.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-group-same-group mcast-group-same-group.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-group-same-group mcast-group-same-group.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-group-same-group mcast-group-same-group.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-single-socket.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-single-socket.sh new file mode 100644 index 000000000..379c3fbf9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-single-socket.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-group-single-socket mcast-group-single-socket.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-group-single-socket mcast-group-single-socket.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-group-single-socket mcast-group-single-socket.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-source-filter.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-source-filter.sh new file mode 100644 index 000000000..1d0243bc8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-group-source-filter.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-group-source-filter mcast-group-source-filter.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-group-source-filter mcast-group-source-filter.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-group-source-filter mcast-group-source-filter.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-pktfld01.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-pktfld01.sh new file mode 100644 index 000000000..7a3fd6a09 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-pktfld01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-pktfld01 mcast-pktfld01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-pktfld01 mcast-pktfld01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-pktfld01 mcast-pktfld01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-pktfld02.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-pktfld02.sh new file mode 100644 index 000000000..5599827b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-pktfld02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-pktfld02 mcast-pktfld02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-pktfld02 mcast-pktfld02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-pktfld02 mcast-pktfld02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld01.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld01.sh new file mode 100644 index 000000000..6b0c5b334 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-queryfld01 mcast-queryfld01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-queryfld01 mcast-queryfld01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-queryfld01 mcast-queryfld01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld02.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld02.sh new file mode 100644 index 000000000..86edfde6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-queryfld02 mcast-queryfld02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-queryfld02 mcast-queryfld02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-queryfld02 mcast-queryfld02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld03.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld03.sh new file mode 100644 index 000000000..b6397681c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-queryfld03 mcast-queryfld03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-queryfld03 mcast-queryfld03.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-queryfld03 mcast-queryfld03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld04.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld04.sh new file mode 100644 index 000000000..119bf3a1b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-queryfld04 mcast-queryfld04.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-queryfld04 mcast-queryfld04.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-queryfld04 mcast-queryfld04.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld05.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld05.sh new file mode 100644 index 000000000..58bed71d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-queryfld05 mcast-queryfld05.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-queryfld05 mcast-queryfld05.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-queryfld05 mcast-queryfld05.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld06.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld06.sh new file mode 100644 index 000000000..1df9444b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast4-queryfld06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast4-queryfld06 mcast-queryfld06.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast4-queryfld06 mcast-queryfld06.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast4-queryfld06 mcast-queryfld06.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-multiple-socket.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-multiple-socket.sh new file mode 100644 index 000000000..a26c1d190 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-multiple-socket.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-group-multiple-socket mcast-group-multiple-socket.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-group-multiple-socket mcast-group-multiple-socket.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-group-multiple-socket mcast-group-multiple-socket.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-same-group.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-same-group.sh new file mode 100644 index 000000000..a04c3c166 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-same-group.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-group-same-group mcast-group-same-group.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-group-same-group mcast-group-same-group.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-group-same-group mcast-group-same-group.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-single-socket.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-single-socket.sh new file mode 100644 index 000000000..8648a1c8a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-single-socket.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-group-single-socket mcast-group-single-socket.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-group-single-socket mcast-group-single-socket.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-group-single-socket mcast-group-single-socket.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-source-filter.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-source-filter.sh new file mode 100644 index 000000000..5c80e6097 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-group-source-filter.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-group-source-filter mcast-group-source-filter.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-group-source-filter mcast-group-source-filter.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-group-source-filter mcast-group-source-filter.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-pktfld01.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-pktfld01.sh new file mode 100644 index 000000000..2e6beb09b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-pktfld01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-pktfld01 mcast-pktfld01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-pktfld01 mcast-pktfld01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-pktfld01 mcast-pktfld01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-pktfld02.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-pktfld02.sh new file mode 100644 index 000000000..4acd3e7c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-pktfld02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-pktfld02 mcast-pktfld02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-pktfld02 mcast-pktfld02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-pktfld02 mcast-pktfld02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld01.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld01.sh new file mode 100644 index 000000000..5b144c364 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-queryfld01 mcast-queryfld01.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-queryfld01 mcast-queryfld01.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-queryfld01 mcast-queryfld01.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld02.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld02.sh new file mode 100644 index 000000000..9903602c2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-queryfld02 mcast-queryfld02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-queryfld02 mcast-queryfld02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-queryfld02 mcast-queryfld02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld03.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld03.sh new file mode 100644 index 000000000..9f160734a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-queryfld03 mcast-queryfld03.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-queryfld03 mcast-queryfld03.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-queryfld03 mcast-queryfld03.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld04.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld04.sh new file mode 100644 index 000000000..63abf5104 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-queryfld04 mcast-queryfld04.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-queryfld04 mcast-queryfld04.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-queryfld04 mcast-queryfld04.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld05.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld05.sh new file mode 100644 index 000000000..1aec7473a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-queryfld05 mcast-queryfld05.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-queryfld05 mcast-queryfld05.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-queryfld05 mcast-queryfld05.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld06.sh b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld06.sh new file mode 100644 index 000000000..ee16bec50 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_multicast/oe_test_ltp_net_stress_multicast_mcast6-queryfld06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_multicast mcast6-queryfld06 mcast-queryfld06.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.multicast -s mcast6-queryfld06 mcast-queryfld06.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.multicast mcast6-queryfld06 mcast-queryfld06.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-dst.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-dst.sh new file mode 100644 index 000000000..9f8574fc6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-dst.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route4-change-dst route-change-dst.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route4-change-dst route-change-dst.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route4-change-dst route-change-dst.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-gw.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-gw.sh new file mode 100644 index 000000000..73abbe035 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-gw.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route4-change-gw route-change-gw.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route4-change-gw route-change-gw.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route4-change-gw route-change-gw.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-if.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-if.sh new file mode 100644 index 000000000..1e346b955 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-if.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route4-change-if route-change-if.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route4-change-if route-change-if.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route4-change-if route-change-if.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-dst.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-dst.sh new file mode 100644 index 000000000..8dcfb99df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-dst.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route4-change-netlink-dst route-change-netlink-dst.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route4-change-netlink-dst route-change-netlink-dst.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route4-change-netlink-dst route-change-netlink-dst.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-gw.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-gw.sh new file mode 100644 index 000000000..579624636 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-gw.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route4-change-netlink-gw route-change-netlink-gw.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route4-change-netlink-gw route-change-netlink-gw.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route4-change-netlink-gw route-change-netlink-gw.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-if.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-if.sh new file mode 100644 index 000000000..c960abd03 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-change-netlink-if.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route4-change-netlink-if route-change-netlink-if.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route4-change-netlink-if route-change-netlink-if.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route4-change-netlink-if route-change-netlink-if.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-redirect.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-redirect.sh new file mode 100644 index 000000000..db7bd5198 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route4-redirect.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route4-redirect route-redirect.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route4-redirect route-redirect.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route4-redirect route-redirect.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-dst.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-dst.sh new file mode 100644 index 000000000..0c7625d12 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-dst.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route6-change-dst route-change-dst.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route6-change-dst route-change-dst.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route6-change-dst route-change-dst.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-gw.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-gw.sh new file mode 100644 index 000000000..46d15e168 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-gw.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route6-change-gw route-change-gw.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route6-change-gw route-change-gw.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route6-change-gw route-change-gw.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-if.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-if.sh new file mode 100644 index 000000000..b1bb5e9ec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-if.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route6-change-if route-change-if.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route6-change-if route-change-if.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route6-change-if route-change-if.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-dst.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-dst.sh new file mode 100644 index 000000000..0234b8ffa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-dst.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route6-change-netlink-dst route-change-netlink-dst.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route6-change-netlink-dst route-change-netlink-dst.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route6-change-netlink-dst route-change-netlink-dst.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-gw.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-gw.sh new file mode 100644 index 000000000..48e14b9b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-gw.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route6-change-netlink-gw route-change-netlink-gw.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route6-change-netlink-gw route-change-netlink-gw.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route6-change-netlink-gw route-change-netlink-gw.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-if.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-if.sh new file mode 100644 index 000000000..f213dac37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-change-netlink-if.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route6-change-netlink-if route-change-netlink-if.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route6-change-netlink-if route-change-netlink-if.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route6-change-netlink-if route-change-netlink-if.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-redirect.sh b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-redirect.sh new file mode 100644 index 000000000..83478dbc5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_stress_route/oe_test_ltp_net_stress_route_route6-redirect.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_stress_route route6-redirect route-redirect.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net_stress.route -s route6-redirect route-redirect.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net_stress.route route6-redirect route-redirect.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_arping01.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_arping01.sh new file mode 100644 index 000000000..61ef61d49 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_arping01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds arping01 arping01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s arping01 arping01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds arping01 arping01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_dhcpd.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_dhcpd.sh new file mode 100644 index 000000000..d2bdf2678 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_dhcpd.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds dhcpd dhcpd_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s dhcpd dhcpd_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds dhcpd dhcpd_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_dnsmasq.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_dnsmasq.sh new file mode 100644 index 000000000..2d0242d9d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_dnsmasq.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds dnsmasq dnsmasq_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s dnsmasq dnsmasq_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds dnsmasq dnsmasq_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ftp.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ftp.sh new file mode 100644 index 000000000..34897055d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ftp.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds ftp ftp01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s ftp ftp01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds ftp ftp01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ipneigh01_arp.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ipneigh01_arp.sh new file mode 100644 index 000000000..1fb4fee4a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ipneigh01_arp.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds ipneigh01_arp ipneigh01.sh -c arp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s ipneigh01_arp ipneigh01.sh -c arp + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds ipneigh01_arp ipneigh01.sh -c arp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ipneigh01_ip.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ipneigh01_ip.sh new file mode 100644 index 000000000..f0b492a20 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ipneigh01_ip.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds ipneigh01_ip ipneigh01.sh -c ip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s ipneigh01_ip ipneigh01.sh -c ip + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds ipneigh01_ip ipneigh01.sh -c ip failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_iproute.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_iproute.sh new file mode 100644 index 000000000..e780ce4e3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_iproute.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds iproute ip_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s iproute ip_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds iproute ip_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_iptables.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_iptables.sh new file mode 100644 index 000000000..74cf19ae3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_iptables.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds iptables iptables01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s iptables iptables01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds iptables iptables01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_netstat.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_netstat.sh new file mode 100644 index 000000000..b31c5dad8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_netstat.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds netstat netstat01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s netstat netstat01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds netstat netstat01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_nft.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_nft.sh new file mode 100644 index 000000000..857ff2fdf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_nft.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds nft nft01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s nft nft01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds nft nft01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ping01.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ping01.sh new file mode 100644 index 000000000..67bd219d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ping01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds ping01 ping01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s ping01 ping01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds ping01 ping01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ping02.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ping02.sh new file mode 100644 index 000000000..edce9e148 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_ping02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds ping02 ping02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s ping02 ping02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds ping02 ping02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_sendfile.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_sendfile.sh new file mode 100644 index 000000000..8a4efc451 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_sendfile.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds sendfile sendfile01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s sendfile sendfile01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds sendfile sendfile01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tc01.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tc01.sh new file mode 100644 index 000000000..58f79ccbd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tc01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds tc01 tc01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s tc01 tc01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds tc01 tc01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tcpdump.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tcpdump.sh new file mode 100644 index 000000000..b53f2636f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tcpdump.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds tcpdump tcpdump01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s tcpdump tcpdump01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds tcpdump tcpdump01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tracepath01.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tracepath01.sh new file mode 100644 index 000000000..8f8c51131 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_tracepath01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds tracepath01 tracepath01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s tracepath01 tracepath01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds tracepath01 tracepath01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_traceroute01.sh b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_traceroute01.sh new file mode 100644 index 000000000..87866956b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tcp_cmds/oe_test_ltp_net_tcp_cmds_traceroute01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tcp_cmds traceroute01 traceroute01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tcp_cmds -s traceroute01 traceroute01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tcp_cmds traceroute01 traceroute01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authnone_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authnone_create.sh new file mode 100644 index 000000000..b99f5242b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authnone_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_authnone_create rpc_test.sh -c tirpc_authnone_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_authnone_create rpc_test.sh -c tirpc_authnone_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_authnone_create rpc_test.sh -c tirpc_authnone_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authsys_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authsys_create.sh new file mode 100644 index 000000000..b895af7da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authsys_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_authsys_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authsys_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_authsys_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authsys_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_authsys_create rpc_test.sh -s tirpc_svc_1 -c tirpc_authsys_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authsys_create_default.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authsys_create_default.sh new file mode 100644 index 000000000..30ae3daa2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_authsys_create_default.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_authsys_create_default rpc_test.sh -c tirpc_authsys_create_default +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_authsys_create_default rpc_test.sh -c tirpc_authsys_create_default + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_authsys_create_default rpc_test.sh -c tirpc_authsys_create_default failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_bottomlevel_clnt_call.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_bottomlevel_clnt_call.sh new file mode 100644 index 000000000..bc6ff4310 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_bottomlevel_clnt_call.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_bottomlevel_clnt_call rpc_test.sh -s tirpc_svc_5 -c tirpc_bottomlevel_clnt_call +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_bottomlevel_clnt_call rpc_test.sh -s tirpc_svc_5 -c tirpc_bottomlevel_clnt_call + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_bottomlevel_clnt_call rpc_test.sh -s tirpc_svc_5 -c tirpc_bottomlevel_clnt_call failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_control.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_control.sh new file mode 100644 index 000000000..36c318ad8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_control.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_control rpc_test.sh -s tirpc_svc_3 -c tirpc_clnt_control +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_control rpc_test.sh -s tirpc_svc_3 -c tirpc_clnt_control + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_control rpc_test.sh -s tirpc_svc_3 -c tirpc_clnt_control failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_create.sh new file mode 100644 index 000000000..6bd756661 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_create rpc_test.sh -s tirpc_svc_2 -c tirpc_clnt_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_create rpc_test.sh -s tirpc_svc_2 -c tirpc_clnt_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_create rpc_test.sh -s tirpc_svc_2 -c tirpc_clnt_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_create_timed.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_create_timed.sh new file mode 100644 index 000000000..03122af38 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_create_timed.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_create_timed rpc_test.sh -s tirpc_svc_2 -c tirpc_clnt_create_timed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_create_timed rpc_test.sh -s tirpc_svc_2 -c tirpc_clnt_create_timed + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_create_timed rpc_test.sh -s tirpc_svc_2 -c tirpc_clnt_create_timed failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_destroy.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_destroy.sh new file mode 100644 index 000000000..d45680812 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_destroy.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_destroy rpc_test.sh -s tirpc_svc_2 -c tirpc_clnt_destroy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_destroy rpc_test.sh -s tirpc_svc_2 -c tirpc_clnt_destroy + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_destroy rpc_test.sh -s tirpc_svc_2 -c tirpc_clnt_destroy failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_dg_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_dg_create.sh new file mode 100644 index 000000000..bf4df6850 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_dg_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_dg_create rpc_test.sh -s tirpc_svc_5 -c tirpc_clnt_dg_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_dg_create rpc_test.sh -s tirpc_svc_5 -c tirpc_clnt_dg_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_dg_create rpc_test.sh -s tirpc_svc_5 -c tirpc_clnt_dg_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_pcreateerror.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_pcreateerror.sh new file mode 100644 index 000000000..3f3aa1d1a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_pcreateerror.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_pcreateerror rpc_test.sh -s tirpc_svc_11 -c tirpc_clnt_pcreateerror +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_pcreateerror rpc_test.sh -s tirpc_svc_11 -c tirpc_clnt_pcreateerror + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_pcreateerror rpc_test.sh -s tirpc_svc_11 -c tirpc_clnt_pcreateerror failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_perrno.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_perrno.sh new file mode 100644 index 000000000..bbadd8cbc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_perrno.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_perrno rpc_test.sh -s tirpc_svc_11 -c tirpc_clnt_perrno +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_perrno rpc_test.sh -s tirpc_svc_11 -c tirpc_clnt_perrno + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_perrno rpc_test.sh -s tirpc_svc_11 -c tirpc_clnt_perrno failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_perror.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_perror.sh new file mode 100644 index 000000000..4918203b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_perror.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_perror rpc_test.sh -s tirpc_svc_11 -c tirpc_clnt_perror +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_perror rpc_test.sh -s tirpc_svc_11 -c tirpc_clnt_perror + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_perror rpc_test.sh -s tirpc_svc_11 -c tirpc_clnt_perror failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tli_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tli_create.sh new file mode 100644 index 000000000..cd557dc40 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tli_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_tli_create rpc_test.sh -s tirpc_svc_4 -c tirpc_clnt_tli_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_tli_create rpc_test.sh -s tirpc_svc_4 -c tirpc_clnt_tli_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_tli_create rpc_test.sh -s tirpc_svc_4 -c tirpc_clnt_tli_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create.sh new file mode 100644 index 000000000..5bed396a8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_tp_create rpc_test.sh -s tirpc_svc_3 -c tirpc_clnt_tp_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_tp_create rpc_test.sh -s tirpc_svc_3 -c tirpc_clnt_tp_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_tp_create rpc_test.sh -s tirpc_svc_3 -c tirpc_clnt_tp_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create_timed.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create_timed.sh new file mode 100644 index 000000000..c9d0a7201 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_tp_create_timed.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_tp_create_timed rpc_test.sh -s tirpc_svc_3 -c tirpc_clnt_tp_create_timed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_tp_create_timed rpc_test.sh -s tirpc_svc_3 -c tirpc_clnt_tp_create_timed + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_tp_create_timed rpc_test.sh -s tirpc_svc_3 -c tirpc_clnt_tp_create_timed failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_vc_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_vc_create.sh new file mode 100644 index 000000000..4c2a6b53b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_clnt_vc_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_clnt_vc_create rpc_test.sh -s tirpc_svc_5 -c tirpc_clnt_vc_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_clnt_vc_create rpc_test.sh -s tirpc_svc_5 -c tirpc_clnt_vc_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_clnt_vc_create rpc_test.sh -s tirpc_svc_5 -c tirpc_clnt_vc_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_expertlevel_clnt_call.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_expertlevel_clnt_call.sh new file mode 100644 index 000000000..0804bc6b5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_expertlevel_clnt_call.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_expertlevel_clnt_call rpc_test.sh -s tirpc_svc_4 -c tirpc_expertlevel_clnt_call +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_expertlevel_clnt_call rpc_test.sh -s tirpc_svc_4 -c tirpc_expertlevel_clnt_call + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_expertlevel_clnt_call rpc_test.sh -s tirpc_svc_4 -c tirpc_expertlevel_clnt_call failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_interlevel_clnt_call.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_interlevel_clnt_call.sh new file mode 100644 index 000000000..b9af22618 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_interlevel_clnt_call.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_interlevel_clnt_call rpc_test.sh -s tirpc_svc_3 -c tirpc_interlevel_clnt_call +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_interlevel_clnt_call rpc_test.sh -s tirpc_svc_3 -c tirpc_interlevel_clnt_call + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_interlevel_clnt_call rpc_test.sh -s tirpc_svc_3 -c tirpc_interlevel_clnt_call failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast.sh new file mode 100644 index 000000000..558e9612c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_rpc_broadcast rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_broadcast +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_rpc_broadcast rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_broadcast + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_rpc_broadcast rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_broadcast failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast_exp.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast_exp.sh new file mode 100644 index 000000000..9243e92e3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_broadcast_exp.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_rpc_broadcast_exp rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_broadcast_exp -e "1,2" +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_rpc_broadcast_exp rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_broadcast_exp -e "1,2" + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_rpc_broadcast_exp rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_broadcast_exp -e "1,2" failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_call.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_call.sh new file mode 100644 index 000000000..039bc8f26 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_call.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_rpc_call rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_call +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_rpc_call rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_call + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_rpc_call rpc_test.sh -s tirpc_svc_1 -c tirpc_rpc_call failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_reg.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_reg.sh new file mode 100644 index 000000000..3eb511c52 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpc_reg.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_rpc_reg rpc_test.sh -c tirpc_rpc_reg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_rpc_reg rpc_test.sh -c tirpc_rpc_reg + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_rpc_reg rpc_test.sh -c tirpc_rpc_reg failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getaddr.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getaddr.sh new file mode 100644 index 000000000..01baef902 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getaddr.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_rpcb_getaddr rpc_test.sh -s tirpc_svc_3 -c tirpc_rpcb_getaddr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_rpcb_getaddr rpc_test.sh -s tirpc_svc_3 -c tirpc_rpcb_getaddr + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_rpcb_getaddr rpc_test.sh -s tirpc_svc_3 -c tirpc_rpcb_getaddr failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getmaps.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getmaps.sh new file mode 100644 index 000000000..2b58b746c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_getmaps.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_rpcb_getmaps rpc_test.sh -s tirpc_svc_3 -c tirpc_rpcb_getmaps +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_rpcb_getmaps rpc_test.sh -s tirpc_svc_3 -c tirpc_rpcb_getmaps + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_rpcb_getmaps rpc_test.sh -s tirpc_svc_3 -c tirpc_rpcb_getmaps failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_rmtcall.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_rmtcall.sh new file mode 100644 index 000000000..a2757b81e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_rmtcall.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_rpcb_rmtcall rpc_test.sh -s tirpc_svc_4 -c tirpc_rpcb_rmtcall +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_rpcb_rmtcall rpc_test.sh -s tirpc_svc_4 -c tirpc_rpcb_rmtcall + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_rpcb_rmtcall rpc_test.sh -s tirpc_svc_4 -c tirpc_rpcb_rmtcall failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_set.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_set.sh new file mode 100644 index 000000000..fb80ab47d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_set.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_rpcb_set rpc_test.sh -c tirpc_rpcb_set +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_rpcb_set rpc_test.sh -c tirpc_rpcb_set + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_rpcb_set rpc_test.sh -c tirpc_rpcb_set failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_unset.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_unset.sh new file mode 100644 index 000000000..6ec154414 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_rpcb_unset.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_rpcb_unset rpc_test.sh -c tirpc_rpcb_unset +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_rpcb_unset rpc_test.sh -c tirpc_rpcb_unset + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_rpcb_unset rpc_test.sh -c tirpc_rpcb_unset failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_create.sh new file mode 100644 index 000000000..99bf82487 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svc_create rpc_test.sh -c tirpc_svc_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svc_create rpc_test.sh -c tirpc_svc_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svc_create rpc_test.sh -c tirpc_svc_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_destroy.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_destroy.sh new file mode 100644 index 000000000..6083fb314 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_destroy.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svc_destroy rpc_test.sh -c tirpc_svc_destroy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svc_destroy rpc_test.sh -c tirpc_svc_destroy + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svc_destroy rpc_test.sh -c tirpc_svc_destroy failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_dg_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_dg_create.sh new file mode 100644 index 000000000..5f2535a38 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_dg_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svc_dg_create rpc_test.sh -c tirpc_svc_dg_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svc_dg_create rpc_test.sh -c tirpc_svc_dg_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svc_dg_create rpc_test.sh -c tirpc_svc_dg_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_reg.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_reg.sh new file mode 100644 index 000000000..f7045954b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_reg.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svc_reg rpc_test.sh -c tirpc_svc_reg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svc_reg rpc_test.sh -c tirpc_svc_reg + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svc_reg rpc_test.sh -c tirpc_svc_reg failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_tli_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_tli_create.sh new file mode 100644 index 000000000..8d1204f7a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_tli_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svc_tli_create rpc_test.sh -c tirpc_svc_tli_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svc_tli_create rpc_test.sh -c tirpc_svc_tli_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svc_tli_create rpc_test.sh -c tirpc_svc_tli_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_tp_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_tp_create.sh new file mode 100644 index 000000000..fe7a95809 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_tp_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svc_tp_create rpc_test.sh -c tirpc_svc_tp_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svc_tp_create rpc_test.sh -c tirpc_svc_tp_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svc_tp_create rpc_test.sh -c tirpc_svc_tp_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_unreg.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_unreg.sh new file mode 100644 index 000000000..84bec7541 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_unreg.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svc_unreg rpc_test.sh -c tirpc_svc_unreg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svc_unreg rpc_test.sh -c tirpc_svc_unreg + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svc_unreg rpc_test.sh -c tirpc_svc_unreg failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_vc_create.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_vc_create.sh new file mode 100644 index 000000000..ec7282042 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svc_vc_create.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svc_vc_create rpc_test.sh -c tirpc_svc_vc_create +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svc_vc_create rpc_test.sh -c tirpc_svc_vc_create + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svc_vc_create rpc_test.sh -c tirpc_svc_vc_create failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noproc.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noproc.sh new file mode 100644 index 000000000..5a5d68441 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noproc.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svcerr_noproc rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_noproc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svcerr_noproc rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_noproc + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svcerr_noproc rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_noproc failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noprog.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noprog.sh new file mode 100644 index 000000000..3fca904fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_noprog.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svcerr_noprog rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_noprog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svcerr_noprog rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_noprog + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svcerr_noprog rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_noprog failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_progvers.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_progvers.sh new file mode 100644 index 000000000..9604e9f71 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_progvers.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svcerr_progvers rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_progvers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svcerr_progvers rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_progvers + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svcerr_progvers rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_progvers failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_systemerr.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_systemerr.sh new file mode 100644 index 000000000..83058e2c2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_systemerr.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svcerr_systemerr rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_systemerr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svcerr_systemerr rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_systemerr + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svcerr_systemerr rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_systemerr failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_weakauth.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_weakauth.sh new file mode 100644 index 000000000..852b31291 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_svcerr_weakauth.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_svcerr_weakauth rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_weakauth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_svcerr_weakauth rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_weakauth + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_svcerr_weakauth rpc_test.sh -s tirpc_svc_11 -c tirpc_svcerr_weakauth failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_toplevel_clnt_call.sh b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_toplevel_clnt_call.sh new file mode 100644 index 000000000..a1694dacb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_tirpc_tests/oe_test_ltp_net_tirpc_tests_tirpc_toplevel_clnt_call.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_net_tirpc_tests tirpc_toplevel_clnt_call rpc_test.sh -s tirpc_svc_2 -c tirpc_toplevel_clnt_call +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f net.tirpc_tests -s tirpc_toplevel_clnt_call rpc_test.sh -s tirpc_svc_2 -c tirpc_toplevel_clnt_call + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "net.tirpc_tests tirpc_toplevel_clnt_call rpc_test.sh -s tirpc_svc_2 -c tirpc_toplevel_clnt_call failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_nptl/oe_test_ltp_nptl_nptl01.sh b/testcases/system-test/ltp-test/ltp_nptl/oe_test_ltp_nptl_nptl01.sh index 87e64579d..6d4522712 100644 --- a/testcases/system-test/ltp-test/ltp_nptl/oe_test_ltp_nptl_nptl01.sh +++ b/testcases/system-test/ltp-test/ltp_nptl/oe_test_ltp_nptl_nptl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f nptl -s nptl01 nptl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "nptl nptl01 nptl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages01.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages01.sh new file mode 100644 index 000000000..12ccf13ae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa migrate_pages01 migrate_pages01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s migrate_pages01 migrate_pages01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa migrate_pages01 migrate_pages01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages02.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages02.sh new file mode 100644 index 000000000..4730130ea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa migrate_pages02 migrate_pages02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s migrate_pages02 migrate_pages02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa migrate_pages02 migrate_pages02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages03.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages03.sh new file mode 100644 index 000000000..28339bb29 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_migrate_pages03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa migrate_pages03 migrate_pages03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s migrate_pages03 migrate_pages03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa migrate_pages03 migrate_pages03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages01.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages01.sh new file mode 100644 index 000000000..648fda739 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages01 move_pages01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages01 move_pages01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages01 move_pages01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages02.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages02.sh new file mode 100644 index 000000000..c3d41014c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages02 move_pages02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages02 move_pages02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages02 move_pages02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages03.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages03.sh new file mode 100644 index 000000000..11eb3ff17 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages03 move_pages03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages03 move_pages03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages03 move_pages03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages04.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages04.sh new file mode 100644 index 000000000..d8e53c870 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages04 move_pages04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages04 move_pages04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages04 move_pages04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages05.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages05.sh new file mode 100644 index 000000000..be7539e32 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages05 move_pages05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages05 move_pages05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages05 move_pages05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages06.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages06.sh new file mode 100644 index 000000000..f97f79314 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages06 move_pages06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages06 move_pages06 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages06 move_pages06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages07.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages07.sh new file mode 100644 index 000000000..e95f02e6c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages07 move_pages07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages07 move_pages07 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages07 move_pages07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages09.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages09.sh new file mode 100644 index 000000000..db90c771e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages09 move_pages09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages09 move_pages09 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages09 move_pages09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages10.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages10.sh new file mode 100644 index 000000000..5dd2d46d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages10 move_pages10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages10 move_pages10 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages10 move_pages10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages11.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages11.sh new file mode 100644 index 000000000..e84c843be --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages11 move_pages11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages11 move_pages11 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages11 move_pages11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages12.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages12.sh new file mode 100644 index 000000000..0ab64d87c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_move_pages12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa move_pages12 move_pages12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s move_pages12 move_pages12 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa move_pages12 move_pages12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_numa_testcases.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_numa_testcases.sh new file mode 100644 index 000000000..7daee9892 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_numa_testcases.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa numa_testcases numa01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s numa_testcases numa01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa numa_testcases numa01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy01.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy01.sh new file mode 100644 index 000000000..370409440 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa set_mempolicy01 set_mempolicy01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s set_mempolicy01 set_mempolicy01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa set_mempolicy01 set_mempolicy01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy02.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy02.sh new file mode 100644 index 000000000..f74228f4a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa set_mempolicy02 set_mempolicy02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s set_mempolicy02 set_mempolicy02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa set_mempolicy02 set_mempolicy02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy03.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy03.sh new file mode 100644 index 000000000..d2d0d1b04 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa set_mempolicy03 set_mempolicy03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s set_mempolicy03 set_mempolicy03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa set_mempolicy03 set_mempolicy03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy04.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy04.sh new file mode 100644 index 000000000..0e149fd4d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa set_mempolicy04 set_mempolicy04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s set_mempolicy04 set_mempolicy04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa set_mempolicy04 set_mempolicy04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy05.sh b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy05.sh new file mode 100644 index 000000000..31e00447f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_numa/oe_test_ltp_numa_set_mempolicy05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_numa set_mempolicy05 set_mempolicy05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f numa -s set_mempolicy05 set_mempolicy05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "numa set_mempolicy05 set_mempolicy05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests01.sh b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests01.sh index a70ecfe2a..60d1ceb43 100644 --- a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests01.sh +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f power_management_tests -s runpwtests01 runpwtests01.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "power_management_tests runpwtests01 runpwtests01.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests02.sh b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests02.sh index 36fb8c447..83486c629 100644 --- a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests02.sh +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f power_management_tests -s runpwtests02 runpwtests02.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "power_management_tests runpwtests02 runpwtests02.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests03.sh b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests03.sh index ba4f2b7fa..a5ec40df2 100644 --- a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests03.sh +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f power_management_tests -s runpwtests03 runpwtests03.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "power_management_tests runpwtests03 runpwtests03.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests04.sh b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests04.sh index 6a3a642b8..0146bd34e 100644 --- a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests04.sh +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f power_management_tests -s runpwtests04 runpwtests04.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "power_management_tests runpwtests04 runpwtests04.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests06.sh b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests06.sh index 1f6a253fd..cb02f14c9 100644 --- a/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests06.sh +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f power_management_tests -s runpwtests06 runpwtests06.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "power_management_tests runpwtests06 runpwtests06.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive01.sh b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive01.sh new file mode 100644 index 000000000..6b4c3e6aa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_power_management_tests_exclusive runpwtests_exclusive01 runpwtests_exclusive01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f power_management_tests_exclusive -s runpwtests_exclusive01 runpwtests_exclusive01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "power_management_tests_exclusive runpwtests_exclusive01 runpwtests_exclusive01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive02.sh b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive02.sh new file mode 100644 index 000000000..4691909f3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_power_management_tests_exclusive runpwtests_exclusive02 runpwtests_exclusive02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f power_management_tests_exclusive -s runpwtests_exclusive02 runpwtests_exclusive02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "power_management_tests_exclusive runpwtests_exclusive02 runpwtests_exclusive02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive03.sh b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive03.sh new file mode 100644 index 000000000..12fac0441 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_power_management_tests_exclusive runpwtests_exclusive03 runpwtests_exclusive03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f power_management_tests_exclusive -s runpwtests_exclusive03 runpwtests_exclusive03.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "power_management_tests_exclusive runpwtests_exclusive03 runpwtests_exclusive03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive04.sh b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive04.sh new file mode 100644 index 000000000..20f0b0905 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_power_management_tests_exclusive runpwtests_exclusive04 runpwtests_exclusive04.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f power_management_tests_exclusive -s runpwtests_exclusive04 runpwtests_exclusive04.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "power_management_tests_exclusive runpwtests_exclusive04 runpwtests_exclusive04.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive05.sh b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive05.sh new file mode 100644 index 000000000..203d22af6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests_exclusive/oe_test_ltp_power_management_tests_exclusive_runpwtests_exclusive05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_power_management_tests_exclusive runpwtests_exclusive05 runpwtests_exclusive05.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f power_management_tests_exclusive -s runpwtests_exclusive05 runpwtests_exclusive05.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "power_management_tests_exclusive runpwtests_exclusive05 runpwtests_exclusive05.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_hangup01.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_hangup01.sh index 69e76b81b..ce00b4f92 100644 --- a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_hangup01.sh +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_hangup01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f pty -s hangup01 hangup01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "pty hangup01 hangup01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_ptem01.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_ptem01.sh index 4124e9af4..e1e7969e4 100644 --- a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_ptem01.sh +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_ptem01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f pty -s ptem01 ptem01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "pty ptem01 ptem01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty01.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty01.sh index 64778f212..cad8972be 100644 --- a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty01.sh +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f pty -s pty01 pty01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "pty pty01 pty01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty02.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty02.sh index 9df5b0995..517e868e4 100644 --- a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty02.sh +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f pty -s pty02 pty02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "pty pty02 pty02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty03.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty03.sh index a34102029..317d62a5c 100644 --- a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty03.sh +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f pty -s pty03 pty03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "pty pty03 pty03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty04.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty04.sh index 7501d1fc8..141f83766 100644 --- a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty04.sh +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f pty -s pty04 pty04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "pty pty04 pty04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty05.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty05.sh index 1b36844ff..1b9ed658e 100644 --- a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty05.sh +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f pty -s pty05 pty05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "pty pty05 pty05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty06.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty06.sh index 885b8a5d6..7a2441283 100644 --- a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty06.sh +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f pty -s pty06 pty06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "pty pty06 pty06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty07.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty07.sh index 3d329731b..8d7d87843 100644 --- a/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty07.sh +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f pty -s pty07 pty07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "pty pty07 pty07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_s390x_tests/oe_test_ltp_s390x_tests_vmcp.sh b/testcases/system-test/ltp-test/ltp_s390x_tests/oe_test_ltp_s390x_tests_vmcp.sh new file mode 100644 index 000000000..2f60de768 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_s390x_tests/oe_test_ltp_s390x_tests_vmcp.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_s390x_tests vmcp vmcp_m.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f s390x_tests -s vmcp vmcp_m.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "s390x_tests vmcp vmcp_m.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_autogroup01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_autogroup01.sh index 196035244..aecd48826 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_autogroup01.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_autogroup01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s autogroup01 autogroup01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched autogroup01 autogroup01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_cfs_bandwidth01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_cfs_bandwidth01.sh index d7f1d08ab..69f07b3db 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_cfs_bandwidth01.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_cfs_bandwidth01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s cfs_bandwidth01 cfs_bandwidth01 -i 5 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched cfs_bandwidth01 cfs_bandwidth01 -i 5 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench01.sh index d420c5c05..ab22684ae 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench01.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s hackbench01 hackbench 50 process 1000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched hackbench01 hackbench 50 process 1000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench02.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench02.sh index 934fe12ea..61542ac7a 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench02.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s hackbench02 hackbench 20 thread 1000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched hackbench02 hackbench 20 thread 1000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_proc_sched_rt01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_proc_sched_rt01.sh new file mode 100644 index 000000000..3e3f5f6d9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_proc_sched_rt01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_sched proc_sched_rt01 proc_sched_rt01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f sched -s proc_sched_rt01 proc_sched_rt01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "sched proc_sched_rt01 proc_sched_rt01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str01.sh index 47f8c37ce..a2fc09f7c 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str01.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s pth_str01 pth_str01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched pth_str01 pth_str01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str02.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str02.sh index a6d718254..9fb45de63 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str02.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s pth_str02 pth_str02 -n1000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched pth_str02 pth_str02 -n1000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str03.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str03.sh index 036b9cd55..733c9d604 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str03.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s pth_str03 pth_str03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched pth_str03 pth_str03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_cli_serv.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_cli_serv.sh index 6a2c820bb..e5994bcd6 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_cli_serv.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_cli_serv.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s sched_cli_serv run_sched_cliserv.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched sched_cli_serv run_sched_cliserv.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_football.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_football.sh new file mode 100644 index 000000000..bccb9159b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_football.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_sched sched_football sched_football +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f sched -s sched_football sched_football + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "sched sched_football sched_football failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_stress.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_stress.sh index 02515b225..33531c62f 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_stress.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_stress.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s sched_stress sched_stress.sh - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched sched_stress sched_stress.sh failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_starvation.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_starvation.sh index e0abe1aaa..ee16e1fcf 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_starvation.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_starvation.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s starvation starvation - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched starvation starvation failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_time-schedule01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_time-schedule01.sh index cb2c174dd..8ea128db0 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_time-schedule01.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_time-schedule01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s time-schedule01 time-schedule - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched time-schedule01 time-schedule failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_trace_sched01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_trace_sched01.sh index bd541d410..774eae4ed 100644 --- a/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_trace_sched01.sh +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_trace_sched01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f sched -s trace_sched01 trace_sched -c 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "sched trace_sched01 trace_sched -c 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf101.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf101.sh new file mode 100644 index 000000000..bdbf79ca6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf101.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf101 growfiles -W gf101 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf101 growfiles -W gf101 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf101 growfiles -W gf101 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf102.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf102.sh new file mode 100644 index 000000000..2e6bae8a4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf102.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf102 growfiles -W gf102 -d /test/growfiles/msdos -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf102 growfiles -W gf102 -d /test/growfiles/msdos -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf102 growfiles -W gf102 -d /test/growfiles/msdos -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf103.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf103.sh new file mode 100644 index 000000000..d9e5deeea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf103.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf103 growfiles -W gf103 -d /test/growfiles/msdos -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf103 growfiles -W gf103 -d /test/growfiles/msdos -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf103 growfiles -W gf103 -d /test/growfiles/msdos -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf104.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf104.sh new file mode 100644 index 000000000..0be128d9f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf104.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf104 growfiles -W gf104 -d /test/growfiles/msdos -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf104 growfiles -W gf104 -d /test/growfiles/msdos -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf104 growfiles -W gf104 -d /test/growfiles/msdos -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf105.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf105.sh new file mode 100644 index 000000000..bc5f76460 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf105.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf105 growfiles -W gf105 -d /test/growfiles/msdos -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf105 growfiles -W gf105 -d /test/growfiles/msdos -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf105 growfiles -W gf105 -d /test/growfiles/msdos -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf106.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf106.sh new file mode 100644 index 000000000..87fa95b32 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf106.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf106 growfiles -W gf106 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf106 growfiles -W gf106 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf106 growfiles -W gf106 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf107.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf107.sh new file mode 100644 index 000000000..8b21f1deb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf107.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf107 growfiles -W gf107 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf107 growfiles -W gf107 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf107 growfiles -W gf107 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf108.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf108.sh new file mode 100644 index 000000000..0440afabe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf108.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf108 growfiles -W gf108 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf108 growfiles -W gf108 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf108 growfiles -W gf108 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf109.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf109.sh new file mode 100644 index 000000000..2c0adc6df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf109.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf109 growfiles -W gf109 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf109 growfiles -W gf109 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf109 growfiles -W gf109 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf110.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf110.sh new file mode 100644 index 000000000..27adb069a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf110.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf110 growfiles -W gf110 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf110 growfiles -W gf110 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf110 growfiles -W gf110 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf111.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf111.sh new file mode 100644 index 000000000..e56a6cd8f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf111.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf111 growfiles -W gf111 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf111 growfiles -W gf111 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf111 growfiles -W gf111 -d /test/growfiles/msdos -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf112.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf112.sh new file mode 100644 index 000000000..e4dc57f15 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf112.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf112 mkfifo gffifo17; growfiles -W gf112 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 30 gffifo17 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf112 mkfifo gffifo17; growfiles -W gf112 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 30 gffifo17 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf112 mkfifo gffifo17; growfiles -W gf112 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 30 gffifo17 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf113.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf113.sh new file mode 100644 index 000000000..b43cf3805 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf113.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf113 mkfifo gffifo18; growfiles -W gf113 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf113 mkfifo gffifo18; growfiles -W gf113 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf113 mkfifo gffifo18; growfiles -W gf113 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf114.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf114.sh new file mode 100644 index 000000000..b832433a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf114.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf114 growfiles -W gf114 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf114 growfiles -W gf114 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf114 growfiles -W gf114 -d /test/growfiles/msdos -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf115.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf115.sh new file mode 100644 index 000000000..452235646 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf115.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf115 growfiles -W gf115 -d /test/growfiles/msdos -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf115 growfiles -W gf115 -d /test/growfiles/msdos -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf115 growfiles -W gf115 -d /test/growfiles/msdos -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf116.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf116.sh new file mode 100644 index 000000000..5a592c842 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf116.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf116 growfiles -W gf116 -d /test/growfiles/msdos -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf116 growfiles -W gf116 -d /test/growfiles/msdos -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf116 growfiles -W gf116 -d /test/growfiles/msdos -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf117.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf117.sh new file mode 100644 index 000000000..0b0ebd826 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf117.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf117 growfiles -W gf117 -d /test/growfiles/msdos -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf117 growfiles -W gf117 -d /test/growfiles/msdos -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf117 growfiles -W gf117 -d /test/growfiles/msdos -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf118.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf118.sh new file mode 100644 index 000000000..4024c7eec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf118.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf118 growfiles -W gf118 -d /test/growfiles/msdos -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf118 growfiles -W gf118 -d /test/growfiles/msdos -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf118 growfiles -W gf118 -d /test/growfiles/msdos -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf119.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf119.sh new file mode 100644 index 000000000..7c290df31 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf119.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf119 growfiles -W gf119 -d /test/growfiles/msdos -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf119 growfiles -W gf119 -d /test/growfiles/msdos -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf119 growfiles -W gf119 -d /test/growfiles/msdos -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf120.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf120.sh new file mode 100644 index 000000000..b6d4d718a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf120.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf120 growfiles -W gf120 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf120 growfiles -W gf120 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf120 growfiles -W gf120 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf121.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf121.sh new file mode 100644 index 000000000..a9684321b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf121.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf121 growfiles -W gf121 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf121 growfiles -W gf121 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf121 growfiles -W gf121 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf122.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf122.sh new file mode 100644 index 000000000..a318d8aaa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf122.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf122 growfiles -W gf122 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf122 growfiles -W gf122 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf122 growfiles -W gf122 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf123.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf123.sh new file mode 100644 index 000000000..bac3c40a1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf123.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf123 growfiles -W gf123 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf123 growfiles -W gf123 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf123 growfiles -W gf123 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf124.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf124.sh new file mode 100644 index 000000000..dd419a61c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf124.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf124 growfiles -W gf124 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf124 growfiles -W gf124 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf124 growfiles -W gf124 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf125.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf125.sh new file mode 100644 index 000000000..cf66b976f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf125.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf125 growfiles -W gf125 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf125 growfiles -W gf125 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf125 growfiles -W gf125 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf126.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf126.sh new file mode 100644 index 000000000..d0896e53f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf126.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf126 growfiles -W gf126 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf126 growfiles -W gf126 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf126 growfiles -W gf126 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf127.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf127.sh new file mode 100644 index 000000000..dbd17e24f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf127.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf127 growfiles -W gf127 -d /test/growfiles/msdos -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf127 growfiles -W gf127 -d /test/growfiles/msdos -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf127 growfiles -W gf127 -d /test/growfiles/msdos -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf128.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf128.sh new file mode 100644 index 000000000..6b5131d58 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf128.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf128 growfiles -W gf128 -d /test/growfiles/msdos -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf128 growfiles -W gf128 -d /test/growfiles/msdos -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf128 growfiles -W gf128 -d /test/growfiles/msdos -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf129.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf129.sh new file mode 100644 index 000000000..3891d6fc4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf129.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf129 growfiles -W gf129 -d /test/growfiles/msdos -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf129 growfiles -W gf129 -d /test/growfiles/msdos -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf129 growfiles -W gf129 -d /test/growfiles/msdos -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf130.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf130.sh new file mode 100644 index 000000000..3c5a0d062 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf130.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf130 growfiles -W gf130 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf130 growfiles -W gf130 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf130 growfiles -W gf130 -d /test/growfiles/msdos -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf201.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf201.sh new file mode 100644 index 000000000..61181c608 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf201.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf201 growfiles -W gf201 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf201 growfiles -W gf201 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf201 growfiles -W gf201 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf202.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf202.sh new file mode 100644 index 000000000..19638ed7b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf202.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf202 growfiles -W gf202 -d /test/growfiles/reiser -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf202 growfiles -W gf202 -d /test/growfiles/reiser -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf202 growfiles -W gf202 -d /test/growfiles/reiser -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf203.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf203.sh new file mode 100644 index 000000000..5a10ae6e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf203.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf203 growfiles -W gf203 -d /test/growfiles/reiser -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf203 growfiles -W gf203 -d /test/growfiles/reiser -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf203 growfiles -W gf203 -d /test/growfiles/reiser -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf204.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf204.sh new file mode 100644 index 000000000..329bba36e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf204.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf204 growfiles -W gf204 -d /test/growfiles/reiser -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf204 growfiles -W gf204 -d /test/growfiles/reiser -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf204 growfiles -W gf204 -d /test/growfiles/reiser -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf205.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf205.sh new file mode 100644 index 000000000..4e18dbdc5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf205.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf205 growfiles -W gf205 -d /test/growfiles/reiser -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf205 growfiles -W gf205 -d /test/growfiles/reiser -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf205 growfiles -W gf205 -d /test/growfiles/reiser -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf206.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf206.sh new file mode 100644 index 000000000..765476172 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf206.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf206 growfiles -W gf206 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf206 growfiles -W gf206 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf206 growfiles -W gf206 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf207.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf207.sh new file mode 100644 index 000000000..522cfb8fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf207.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf207 growfiles -W gf207 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf207 growfiles -W gf207 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf207 growfiles -W gf207 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf208.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf208.sh new file mode 100644 index 000000000..e3fd0ce82 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf208.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf208 growfiles -W gf208 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf208 growfiles -W gf208 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf208 growfiles -W gf208 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf209.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf209.sh new file mode 100644 index 000000000..2818dddb3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf209.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf209 growfiles -W gf209 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf209 growfiles -W gf209 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf209 growfiles -W gf209 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf210.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf210.sh new file mode 100644 index 000000000..424d0a2ca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf210.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf210 growfiles -W gf210 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf210 growfiles -W gf210 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf210 growfiles -W gf210 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf211.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf211.sh new file mode 100644 index 000000000..ecb275c7c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf211.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf211 growfiles -W gf211 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf211 growfiles -W gf211 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf211 growfiles -W gf211 -d /test/growfiles/reiser -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf212.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf212.sh new file mode 100644 index 000000000..f40ae0247 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf212.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf212 mkfifo gffifo17; growfiles -W gf212 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 30 gffifo17 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf212 mkfifo gffifo17; growfiles -W gf212 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 30 gffifo17 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf212 mkfifo gffifo17; growfiles -W gf212 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 30 gffifo17 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf213.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf213.sh new file mode 100644 index 000000000..e668870da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf213.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf213 mkfifo gffifo18; growfiles -W gf213 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf213 mkfifo gffifo18; growfiles -W gf213 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf213 mkfifo gffifo18; growfiles -W gf213 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf214.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf214.sh new file mode 100644 index 000000000..64fd6bbef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf214.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf214 growfiles -W gf214 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf214 growfiles -W gf214 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf214 growfiles -W gf214 -d /test/growfiles/reiser -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf215.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf215.sh new file mode 100644 index 000000000..8b872a463 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf215.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf215 growfiles -W gf215 -d /test/growfiles/reiser -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf215 growfiles -W gf215 -d /test/growfiles/reiser -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf215 growfiles -W gf215 -d /test/growfiles/reiser -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf216.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf216.sh new file mode 100644 index 000000000..eafc7f60c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf216.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf216 growfiles -W gf216 -d /test/growfiles/reiser -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf216 growfiles -W gf216 -d /test/growfiles/reiser -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf216 growfiles -W gf216 -d /test/growfiles/reiser -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf217.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf217.sh new file mode 100644 index 000000000..11fd6e991 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf217.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf217 growfiles -W gf217 -d /test/growfiles/reiser -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf217 growfiles -W gf217 -d /test/growfiles/reiser -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf217 growfiles -W gf217 -d /test/growfiles/reiser -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf218.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf218.sh new file mode 100644 index 000000000..ada4c0103 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf218.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf218 growfiles -W gf218 -d /test/growfiles/reiser -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf218 growfiles -W gf218 -d /test/growfiles/reiser -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf218 growfiles -W gf218 -d /test/growfiles/reiser -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf219.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf219.sh new file mode 100644 index 000000000..b7e4ba925 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf219.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf219 growfiles -W gf219 -d /test/growfiles/reiser -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf219 growfiles -W gf219 -d /test/growfiles/reiser -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf219 growfiles -W gf219 -d /test/growfiles/reiser -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf220.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf220.sh new file mode 100644 index 000000000..a01342246 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf220.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf220 growfiles -W gf220 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf220 growfiles -W gf220 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf220 growfiles -W gf220 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf221.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf221.sh new file mode 100644 index 000000000..8468c248a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf221.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf221 growfiles -W gf221 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf221 growfiles -W gf221 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf221 growfiles -W gf221 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf222.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf222.sh new file mode 100644 index 000000000..15cd21626 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf222.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf222 growfiles -W gf222 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf222 growfiles -W gf222 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf222 growfiles -W gf222 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf223.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf223.sh new file mode 100644 index 000000000..4063f2bae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf223.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf223 growfiles -W gf223 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf223 growfiles -W gf223 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf223 growfiles -W gf223 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf224.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf224.sh new file mode 100644 index 000000000..673dc5614 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf224.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf224 growfiles -W gf224 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf224 growfiles -W gf224 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf224 growfiles -W gf224 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf225.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf225.sh new file mode 100644 index 000000000..02ff81b66 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf225.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf225 growfiles -W gf225 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf225 growfiles -W gf225 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf225 growfiles -W gf225 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf226.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf226.sh new file mode 100644 index 000000000..e60bc809a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf226.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf226 growfiles -W gf226 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf226 growfiles -W gf226 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf226 growfiles -W gf226 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf227.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf227.sh new file mode 100644 index 000000000..613900ccf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf227.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf227 growfiles -W gf227 -d /test/growfiles/reiser -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf227 growfiles -W gf227 -d /test/growfiles/reiser -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf227 growfiles -W gf227 -d /test/growfiles/reiser -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf228.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf228.sh new file mode 100644 index 000000000..9524acec9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf228.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf228 growfiles -W gf228 -d /test/growfiles/reiser -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf228 growfiles -W gf228 -d /test/growfiles/reiser -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf228 growfiles -W gf228 -d /test/growfiles/reiser -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf229.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf229.sh new file mode 100644 index 000000000..1af910ac7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf229.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf229 growfiles -W gf229 -d /test/growfiles/reiser -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf229 growfiles -W gf229 -d /test/growfiles/reiser -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf229 growfiles -W gf229 -d /test/growfiles/reiser -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf230.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf230.sh new file mode 100644 index 000000000..2593a347c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf230.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf230 growfiles -W gf230 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf230 growfiles -W gf230 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf230 growfiles -W gf230 -d /test/growfiles/reiser -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf301.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf301.sh new file mode 100644 index 000000000..81a675727 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf301.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf301 growfiles -W gf301 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf301 growfiles -W gf301 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf301 growfiles -W gf301 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf302.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf302.sh new file mode 100644 index 000000000..d9fe52c81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf302.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf302 growfiles -W gf302 -d /test/growfiles/ext2 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf302 growfiles -W gf302 -d /test/growfiles/ext2 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf302 growfiles -W gf302 -d /test/growfiles/ext2 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf303.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf303.sh new file mode 100644 index 000000000..39eb2664c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf303.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf303 growfiles -W gf303 -d /test/growfiles/ext2 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf303 growfiles -W gf303 -d /test/growfiles/ext2 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf303 growfiles -W gf303 -d /test/growfiles/ext2 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf304.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf304.sh new file mode 100644 index 000000000..f35e54473 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf304.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf304 growfiles -W gf304 -d /test/growfiles/ext2 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf304 growfiles -W gf304 -d /test/growfiles/ext2 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf304 growfiles -W gf304 -d /test/growfiles/ext2 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf305.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf305.sh new file mode 100644 index 000000000..0ff965699 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf305.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf305 growfiles -W gf305 -d /test/growfiles/ext2 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf305 growfiles -W gf305 -d /test/growfiles/ext2 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf305 growfiles -W gf305 -d /test/growfiles/ext2 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf306.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf306.sh new file mode 100644 index 000000000..e16e2a0bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf306.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf306 growfiles -W gf306 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf306 growfiles -W gf306 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf306 growfiles -W gf306 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf307.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf307.sh new file mode 100644 index 000000000..7bf5be5a3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf307.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf307 growfiles -W gf307 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf307 growfiles -W gf307 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf307 growfiles -W gf307 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf308.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf308.sh new file mode 100644 index 000000000..572b4f30d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf308.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf308 growfiles -W gf308 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf308 growfiles -W gf308 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf308 growfiles -W gf308 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf309.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf309.sh new file mode 100644 index 000000000..bd34db208 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf309.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf309 growfiles -W gf309 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf309 growfiles -W gf309 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf309 growfiles -W gf309 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf310.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf310.sh new file mode 100644 index 000000000..39d21eae0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf310.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf310 growfiles -W gf310 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf310 growfiles -W gf310 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf310 growfiles -W gf310 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf311.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf311.sh new file mode 100644 index 000000000..65b822807 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf311.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf311 growfiles -W gf311 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf311 growfiles -W gf311 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf311 growfiles -W gf311 -d /test/growfiles/ext2 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf312.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf312.sh new file mode 100644 index 000000000..c20f4de97 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf312.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf312 mkfifo gffifo17; growfiles -W gf312 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 30 gffifo17 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf312 mkfifo gffifo17; growfiles -W gf312 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 30 gffifo17 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf312 mkfifo gffifo17; growfiles -W gf312 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 30 gffifo17 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf313.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf313.sh new file mode 100644 index 000000000..4edb00ea9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf313.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf313 mkfifo gffifo18; growfiles -W gf313 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf313 mkfifo gffifo18; growfiles -W gf313 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf313 mkfifo gffifo18; growfiles -W gf313 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf314.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf314.sh new file mode 100644 index 000000000..a8a62f4d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf314.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf314 growfiles -W gf314 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf314 growfiles -W gf314 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf314 growfiles -W gf314 -d /test/growfiles/ext2 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf315.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf315.sh new file mode 100644 index 000000000..40595fb94 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf315.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf315 growfiles -W gf315 -d /test/growfiles/ext2 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf315 growfiles -W gf315 -d /test/growfiles/ext2 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf315 growfiles -W gf315 -d /test/growfiles/ext2 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf316.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf316.sh new file mode 100644 index 000000000..ad8b512c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf316.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf316 growfiles -W gf316 -d /test/growfiles/ext2 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf316 growfiles -W gf316 -d /test/growfiles/ext2 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf316 growfiles -W gf316 -d /test/growfiles/ext2 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf317.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf317.sh new file mode 100644 index 000000000..f5e59ddac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf317.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf317 growfiles -W gf317 -d /test/growfiles/ext2 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf317 growfiles -W gf317 -d /test/growfiles/ext2 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf317 growfiles -W gf317 -d /test/growfiles/ext2 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf318.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf318.sh new file mode 100644 index 000000000..38382a354 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf318.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf318 growfiles -W gf318 -d /test/growfiles/ext2 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf318 growfiles -W gf318 -d /test/growfiles/ext2 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf318 growfiles -W gf318 -d /test/growfiles/ext2 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf319.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf319.sh new file mode 100644 index 000000000..b9afc5e4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf319.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf319 growfiles -W gf319 -d /test/growfiles/ext2 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf319 growfiles -W gf319 -d /test/growfiles/ext2 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf319 growfiles -W gf319 -d /test/growfiles/ext2 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf320.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf320.sh new file mode 100644 index 000000000..b6cf9dbde --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf320.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf320 growfiles -W gf320 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf320 growfiles -W gf320 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf320 growfiles -W gf320 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf321.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf321.sh new file mode 100644 index 000000000..74bc45824 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf321.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf321 growfiles -W gf321 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf321 growfiles -W gf321 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf321 growfiles -W gf321 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf322.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf322.sh new file mode 100644 index 000000000..8f2a8c215 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf322.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf322 growfiles -W gf322 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf322 growfiles -W gf322 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf322 growfiles -W gf322 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf323.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf323.sh new file mode 100644 index 000000000..6fdfed446 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf323.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf323 growfiles -W gf323 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf323 growfiles -W gf323 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf323 growfiles -W gf323 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf324.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf324.sh new file mode 100644 index 000000000..bfafc0e65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf324.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf324 growfiles -W gf324 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf324 growfiles -W gf324 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf324 growfiles -W gf324 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf325.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf325.sh new file mode 100644 index 000000000..3cb4f127a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf325.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf325 growfiles -W gf325 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf325 growfiles -W gf325 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf325 growfiles -W gf325 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf326.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf326.sh new file mode 100644 index 000000000..335f8b3f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf326.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf326 growfiles -W gf326 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf326 growfiles -W gf326 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf326 growfiles -W gf326 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf327.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf327.sh new file mode 100644 index 000000000..598020738 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf327.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf327 growfiles -W gf327 -d /test/growfiles/ext2 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf327 growfiles -W gf327 -d /test/growfiles/ext2 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf327 growfiles -W gf327 -d /test/growfiles/ext2 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf328.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf328.sh new file mode 100644 index 000000000..bd13a480d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf328.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf328 growfiles -W gf328 -d /test/growfiles/ext2 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf328 growfiles -W gf328 -d /test/growfiles/ext2 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf328 growfiles -W gf328 -d /test/growfiles/ext2 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf329.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf329.sh new file mode 100644 index 000000000..bdd830f3e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf329.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf329 growfiles -W gf329 -d /test/growfiles/ext2 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf329 growfiles -W gf329 -d /test/growfiles/ext2 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf329 growfiles -W gf329 -d /test/growfiles/ext2 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf330.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf330.sh new file mode 100644 index 000000000..7aa0ae2fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf330.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf330 growfiles -W gf330 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf330 growfiles -W gf330 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf330 growfiles -W gf330 -d /test/growfiles/ext2 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf701.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf701.sh new file mode 100644 index 000000000..77da06c67 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf701.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf701 growfiles -W gf701 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf701 growfiles -W gf701 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf701 growfiles -W gf701 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 20 -w -C 1 -l -I r -T 10 glseek20 glseek20.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf702.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf702.sh new file mode 100644 index 000000000..fb0a84ce2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf702.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf702 growfiles -W gf702 -d /test/growfiles/ext3 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf702 growfiles -W gf702 -d /test/growfiles/ext3 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf702 growfiles -W gf702 -d /test/growfiles/ext3 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf703.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf703.sh new file mode 100644 index 000000000..5dd6c1f48 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf703.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf703 growfiles -W gf703 -d /test/growfiles/ext3 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf703 growfiles -W gf703 -d /test/growfiles/ext3 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf703 growfiles -W gf703 -d /test/growfiles/ext3 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf704.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf704.sh new file mode 100644 index 000000000..7e6d5165d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf704.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf704 growfiles -W gf704 -d /test/growfiles/ext3 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf704 growfiles -W gf704 -d /test/growfiles/ext3 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf704 growfiles -W gf704 -d /test/growfiles/ext3 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf705.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf705.sh new file mode 100644 index 000000000..ef467ac43 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf705.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf705 growfiles -W gf705 -d /test/growfiles/ext3 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf705 growfiles -W gf705 -d /test/growfiles/ext3 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf705 growfiles -W gf705 -d /test/growfiles/ext3 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf706.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf706.sh new file mode 100644 index 000000000..aa9e890c6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf706.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf706 growfiles -W gf706 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf706 growfiles -W gf706 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf706 growfiles -W gf706 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 g_rand10 g_rand10.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf707.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf707.sh new file mode 100644 index 000000000..57e9ad6a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf707.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf707 growfiles -W gf707 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf707 growfiles -W gf707 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf707 growfiles -W gf707 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 -I p g_rand13 g_rand13.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf708.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf708.sh new file mode 100644 index 000000000..03f2b4418 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf708.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf708 growfiles -W gf708 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf708 growfiles -W gf708 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf708 growfiles -W gf708 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--2 -i 0 -L 30 -C 1 g_rand11 g_rand11.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf709.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf709.sh new file mode 100644 index 000000000..e410009b3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf709.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf709 growfiles -W gf709 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf709 growfiles -W gf709 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf709 growfiles -W gf709 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -R 0--1 -i 0 -L 30 -C 1 -I p g_rand12 g_rand12.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf710.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf710.sh new file mode 100644 index 000000000..9bd2324cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf710.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf710 growfiles -W gf710 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf710 growfiles -W gf710 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf710 growfiles -W gf710 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I l g_lio14 g_lio14.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf711.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf711.sh new file mode 100644 index 000000000..3cc20bd60 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf711.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf711 growfiles -W gf711 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf711 growfiles -W gf711 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf711 growfiles -W gf711 -d /test/growfiles/ext3 -b -e 1 -u -r 1-5000 -i 0 -L 30 -C 1 -I L g_lio15 g_lio15.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf712.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf712.sh new file mode 100644 index 000000000..0bbfb6816 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf712.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf712 mkfifo gffifo17; growfiles -W gf712 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 30 gffifo17 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf712 mkfifo gffifo17; growfiles -W gf712 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 30 gffifo17 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf712 mkfifo gffifo17; growfiles -W gf712 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 30 gffifo17 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf713.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf713.sh new file mode 100644 index 000000000..13a66c0dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf713.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf713 mkfifo gffifo18; growfiles -W gf713 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf713 mkfifo gffifo18; growfiles -W gf713 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf713 mkfifo gffifo18; growfiles -W gf713 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 30 -I r -r 1-4096 gffifo18 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf714.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf714.sh new file mode 100644 index 000000000..241dc955c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf714.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf714 growfiles -W gf714 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf714 growfiles -W gf714 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf714 growfiles -W gf714 -d /test/growfiles/ext3 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 glseek19 glseek19.2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf715.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf715.sh new file mode 100644 index 000000000..38b2652a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf715.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf715 growfiles -W gf715 -d /test/growfiles/ext3 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf715 growfiles -W gf715 -d /test/growfiles/ext3 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf715 growfiles -W gf715 -d /test/growfiles/ext3 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 Lgfile1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf716.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf716.sh new file mode 100644 index 000000000..50757cee2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf716.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf716 growfiles -W gf716 -d /test/growfiles/ext3 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf716 growfiles -W gf716 -d /test/growfiles/ext3 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf716 growfiles -W gf716 -d /test/growfiles/ext3 -b -e 1 -i 0 -L 120 -u -g 4090 -T 100 -t 408990 -l -C 10 -c 1000 -S 10 -f Lgf02_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf717.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf717.sh new file mode 100644 index 000000000..829687e6a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf717.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf717 growfiles -W gf717 -d /test/growfiles/ext3 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf717 growfiles -W gf717 -d /test/growfiles/ext3 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf717 growfiles -W gf717 -d /test/growfiles/ext3 -b -e 1 -i 0 -L 120 -u -g 5000 -T 100 -t 499990 -l -C 10 -c 1000 -S 10 -f Lgf03_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf718.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf718.sh new file mode 100644 index 000000000..908c578b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf718.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf718 growfiles -W gf718 -d /test/growfiles/ext3 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf718 growfiles -W gf718 -d /test/growfiles/ext3 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf718 growfiles -W gf718 -d /test/growfiles/ext3 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -T 10 -l -S 2 -f Lgf04_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf719.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf719.sh new file mode 100644 index 000000000..4ffd6adef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf719.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf719 growfiles -W gf719 -d /test/growfiles/ext3 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf719 growfiles -W gf719 -d /test/growfiles/ext3 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf719 growfiles -W gf719 -d /test/growfiles/ext3 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -o O_RDWR,O_CREAT,O_TRUNC -u -f gf08i_ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf720.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf720.sh new file mode 100644 index 000000000..ac6cc76a1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf720.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf720 growfiles -W gf720 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf720 growfiles -W gf720 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf720 growfiles -W gf720 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1-256000:512 -R 512-256000 -T 4 gfbigio-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf721.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf721.sh new file mode 100644 index 000000000..b06062006 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf721.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf721 growfiles -W gf721 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf721 growfiles -W gf721 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf721 growfiles -W gf721 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bld-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf722.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf722.sh new file mode 100644 index 000000000..2576502bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf722.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf722 growfiles -W gf722 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf722 growfiles -W gf722 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf722 growfiles -W gf722 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -T 10 -t 20480 gf-bldf-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf723.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf723.sh new file mode 100644 index 000000000..ad6bde24d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf723.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf723 growfiles -W gf723 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf723 growfiles -W gf723 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf723 growfiles -W gf723 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 512-64000:1024 -R 1-384000 -T 4 gf-inf-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf724.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf724.sh new file mode 100644 index 000000000..fa734647a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf724.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf724 growfiles -W gf724 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf724 growfiles -W gf724 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf724 growfiles -W gf724 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 gf-jbld-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf725.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf725.sh new file mode 100644 index 000000000..e8649deec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf725.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf725 growfiles -W gf725 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf725 growfiles -W gf725 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf725 growfiles -W gf725 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 1024000-2048000:2048 -R 4095-2048000 -T 1 gf-large-gs-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf726.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf726.sh new file mode 100644 index 000000000..3ba93e21a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf726.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf726 growfiles -W gf726 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf726 growfiles -W gf726 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf726 growfiles -W gf726 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -r 128-32768:128 -R 512-64000 -T 4 gfsmallio-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf727.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf727.sh new file mode 100644 index 000000000..d28a26ded --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf727.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf727 growfiles -W gf727 -d /test/growfiles/ext3 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf727 growfiles -W gf727 -d /test/growfiles/ext3 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf727 growfiles -W gf727 -d /test/growfiles/ext3 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u gfsparse-1-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf728.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf728.sh new file mode 100644 index 000000000..616f57f7a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf728.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf728 growfiles -W gf728 -d /test/growfiles/ext3 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf728 growfiles -W gf728 -d /test/growfiles/ext3 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf728 growfiles -W gf728 -d /test/growfiles/ext3 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u gfsparse-2-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf729.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf729.sh new file mode 100644 index 000000000..aa5f199fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf729.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf729 growfiles -W gf729 -d /test/growfiles/ext3 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf729 growfiles -W gf729 -d /test/growfiles/ext3 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf729 growfiles -W gf729 -d /test/growfiles/ext3 -b -D 0 -r 1-4096 -R 0-33554432 -i 0 -L 60 -C 1 -u gfsparse-3-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf730.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf730.sh new file mode 100644 index 000000000..1c03034be --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_gf730.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 gf730 growfiles -W gf730 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s gf730 growfiles -W gf730 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 gf730 growfiles -W gf730 -d /test/growfiles/ext3 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -o O_RDWR,O_CREAT,O_SYNC -g 20480 -T 10 -t 20480 gf-sync-$$ failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest01.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest01.sh new file mode 100644 index 000000000..8d5ec555b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 rwtest01 export LTPROOT; rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:rw-sync-$$ 500b:/test/growfiles/msdos/rwtest01%f +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s rwtest01 export LTPROOT; rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:rw-sync-$$ 500b:/test/growfiles/msdos/rwtest01%f + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 rwtest01 export LTPROOT; rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:rw-sync-$$ 500b:/test/growfiles/msdos/rwtest01%f failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest02.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest02.sh new file mode 100644 index 000000000..50a65af33 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 rwtest02 export LTPROOT; rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:rw-buffered-$$ 500b:/test/growfiles/msdos/rwtest02%f +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s rwtest02 export LTPROOT; rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:rw-buffered-$$ 500b:/test/growfiles/msdos/rwtest02%f + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 rwtest02 export LTPROOT; rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:rw-buffered-$$ 500b:/test/growfiles/msdos/rwtest02%f failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest03.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest03.sh new file mode 100644 index 000000000..7bcb52f5f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 rwtest03 export LTPROOT; rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:mm-buff-$$ 500b:/test/growfiles/msdos/rwtest03%f +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s rwtest03 export LTPROOT; rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:mm-buff-$$ 500b:/test/growfiles/msdos/rwtest03%f + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 rwtest03 export LTPROOT; rwtest -N rwtest03 -c -q -i 60s -n 2 -f buffered -s mmread,mmwrite -m random -Dv 10%25000:mm-buff-$$ 500b:/test/growfiles/msdos/rwtest03%f failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest04.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest04.sh new file mode 100644 index 000000000..b64c8b5fb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 rwtest04 export LTPROOT; rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:mm-sync-$$ 500b:/test/growfiles/msdos/rwtest04%f +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s rwtest04 export LTPROOT; rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:mm-sync-$$ 500b:/test/growfiles/msdos/rwtest04%f + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 rwtest04 export LTPROOT; rwtest -N rwtest04 -c -q -i 60s -n 2 -f sync -s mmread,mmwrite -m random -Dv 10%25000:mm-sync-$$ 500b:/test/growfiles/msdos/rwtest04%f failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest05.sh b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest05.sh new file mode 100644 index 000000000..85d68aaab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_scsi_debug_part1/oe_test_ltp_scsi_debug_part1_rwtest05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_scsi_debug_part1 rwtest05 export LTPROOT; rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:/test/growfiles/msdos/rwtest05%f +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f scsi_debug.part1 -s rwtest05 export LTPROOT; rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:/test/growfiles/msdos/rwtest05%f + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "scsi_debug.part1 rwtest05 export LTPROOT; rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:/test/growfiles/msdos/rwtest05%f failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_file_access.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_file_access.sh new file mode 100644 index 000000000..037afb484 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_file_access.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_file_access smack_file_access.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_file_access smack_file_access.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_file_access smack_file_access.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_ambient.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_ambient.sh new file mode 100644 index 000000000..f2f379f98 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_ambient.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_set_ambient smack_set_ambient.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_set_ambient smack_set_ambient.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_set_ambient smack_set_ambient.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_cipso.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_cipso.sh new file mode 100644 index 000000000..ec2118d0d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_cipso.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_set_cipso smack_set_cipso.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_set_cipso smack_set_cipso.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_set_cipso smack_set_cipso.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_current.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_current.sh new file mode 100644 index 000000000..3b9db2a64 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_current.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_set_current smack_set_current.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_set_current smack_set_current.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_set_current smack_set_current.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_direct.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_direct.sh new file mode 100644 index 000000000..a2695474a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_direct.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_set_direct smack_set_direct.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_set_direct smack_set_direct.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_set_direct smack_set_direct.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_doi.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_doi.sh new file mode 100644 index 000000000..53f83f9cf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_doi.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_set_doi smack_set_doi.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_set_doi smack_set_doi.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_set_doi smack_set_doi.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_load.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_load.sh new file mode 100644 index 000000000..1ccccad5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_load.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_set_load smack_set_load.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_set_load smack_set_load.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_set_load smack_set_load.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_netlabel.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_netlabel.sh new file mode 100644 index 000000000..8680f3fee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_netlabel.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_set_netlabel smack_set_netlabel.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_set_netlabel smack_set_netlabel.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_set_netlabel smack_set_netlabel.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_onlycap.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_onlycap.sh new file mode 100644 index 000000000..9363add8b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_onlycap.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_set_onlycap smack_set_onlycap.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_set_onlycap smack_set_onlycap.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_set_onlycap smack_set_onlycap.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_socket_labels.sh b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_socket_labels.sh new file mode 100644 index 000000000..9a04aa310 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smack/oe_test_ltp_smack_smack_set_socket_labels.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smack smack_set_socket_labels smack_set_socket_labels +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smack -s smack_set_socket_labels smack_set_socket_labels + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smack smack_set_socket_labels smack_set_socket_labels failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_access01.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_access01.sh new file mode 100644 index 000000000..c2f739bd7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_access01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest access01 access01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s access01 access01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest access01 access01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_chdir01.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_chdir01.sh new file mode 100644 index 000000000..759924aa6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_chdir01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest chdir01 chdir01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s chdir01 chdir01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest chdir01 chdir01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_df01_sh.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_df01_sh.sh new file mode 100644 index 000000000..4364e316b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_df01_sh.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest df01_sh df01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s df01_sh df01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest df01_sh df01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_fork01.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_fork01.sh new file mode 100644 index 000000000..3c896bd07 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_fork01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest fork01 fork01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s fork01 fork01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest fork01 fork01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_macsec02.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_macsec02.sh new file mode 100644 index 000000000..1c47db30e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_macsec02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest macsec02 macsec02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s macsec02 macsec02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest macsec02 macsec02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_ping602.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_ping602.sh new file mode 100644 index 000000000..81e70ea7e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_ping602.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest ping602 ping02.sh -6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s ping602 ping02.sh -6 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest ping602 ping02.sh -6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_shell_test01.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_shell_test01.sh new file mode 100644 index 000000000..2122379ab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_shell_test01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest shell_test01 echo "SUCCESS" | shell_pipe01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s shell_test01 echo "SUCCESS" | shell_pipe01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest shell_test01 echo "SUCCESS" | shell_pipe01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_splice02.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_splice02.sh new file mode 100644 index 000000000..566f5b5d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_splice02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest splice02 splice02 -s 20 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s splice02 splice02 -s 20 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest splice02 splice02 -s 20 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_stat04.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_stat04.sh new file mode 100644 index 000000000..911b2e57c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_stat04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest stat04 stat04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s stat04 stat04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest stat04 stat04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_symlink01.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_symlink01.sh new file mode 100644 index 000000000..ec1672bd8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_symlink01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest symlink01 symlink01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s symlink01 symlink01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest symlink01 symlink01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_time01.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_time01.sh new file mode 100644 index 000000000..8f98aba92 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_time01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest time01 time01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s time01 time01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest time01 time01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_wait02.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_wait02.sh new file mode 100644 index 000000000..ef0aca985 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_wait02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest wait02 wait02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s wait02 wait02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest wait02 wait02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_write01.sh b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_write01.sh new file mode 100644 index 000000000..52671a065 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_smoketest/oe_test_ltp_smoketest_write01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_smoketest write01 write01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f smoketest -s write01 write01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "smoketest write01 write01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl01.sh new file mode 100644 index 000000000..cbeb412dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgctl01 msgctl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgctl01 msgctl01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgctl01 msgctl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl02.sh new file mode 100644 index 000000000..881b12d36 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgctl02 msgctl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgctl02 msgctl02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgctl02 msgctl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl03.sh new file mode 100644 index 000000000..bd62ed446 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgctl03 msgctl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgctl03 msgctl03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgctl03 msgctl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl04.sh new file mode 100644 index 000000000..3edfa37c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgctl04 msgctl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgctl04 msgctl04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgctl04 msgctl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl05.sh new file mode 100644 index 000000000..91c2f36d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgctl05 msgctl05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgctl05 msgctl05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgctl05 msgctl05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl06.sh new file mode 100644 index 000000000..30b866398 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgctl06 msgctl06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgctl06 msgctl06 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgctl06 msgctl06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl12.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl12.sh new file mode 100644 index 000000000..1d254fe19 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgctl12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgctl12 msgctl12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgctl12 msgctl12 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgctl12 msgctl12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget01.sh new file mode 100644 index 000000000..390b57d00 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgget01 msgget01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgget01 msgget01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgget01 msgget01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget02.sh new file mode 100644 index 000000000..24ff5f4cc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgget02 msgget02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgget02 msgget02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgget02 msgget02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget03.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget03.sh new file mode 100644 index 000000000..f0545f14a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgget03 msgget03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgget03 msgget03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgget03 msgget03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget04.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget04.sh new file mode 100644 index 000000000..48fb3302c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgget04 msgget04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgget04 msgget04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgget04 msgget04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget05.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget05.sh new file mode 100644 index 000000000..285b4aada --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgget05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgget05 msgget05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgget05 msgget05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgget05 msgget05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv01.sh new file mode 100644 index 000000000..3cd2c28b9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgrcv01 msgrcv01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgrcv01 msgrcv01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgrcv01 msgrcv01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv02.sh new file mode 100644 index 000000000..91c147e89 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgrcv02 msgrcv02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgrcv02 msgrcv02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgrcv02 msgrcv02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv03.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv03.sh new file mode 100644 index 000000000..14ef0d90d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgrcv03 msgrcv03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgrcv03 msgrcv03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgrcv03 msgrcv03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv05.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv05.sh new file mode 100644 index 000000000..67b6a3f9a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgrcv05 msgrcv05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgrcv05 msgrcv05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgrcv05 msgrcv05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv06.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv06.sh new file mode 100644 index 000000000..a1f5f1d1a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgrcv06 msgrcv06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgrcv06 msgrcv06 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgrcv06 msgrcv06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv07.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv07.sh new file mode 100644 index 000000000..9997b4b1f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgrcv07 msgrcv07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgrcv07 msgrcv07 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgrcv07 msgrcv07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv08.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv08.sh new file mode 100644 index 000000000..68e398214 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgrcv08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgrcv08 msgrcv08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgrcv08 msgrcv08 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgrcv08 msgrcv08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd01.sh new file mode 100644 index 000000000..5428d4960 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgsnd01 msgsnd01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgsnd01 msgsnd01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgsnd01 msgsnd01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd02.sh new file mode 100644 index 000000000..9061df202 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgsnd02 msgsnd02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgsnd02 msgsnd02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgsnd02 msgsnd02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd05.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd05.sh new file mode 100644 index 000000000..15d5a1c12 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgsnd05 msgsnd05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgsnd05 msgsnd05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgsnd05 msgsnd05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd06.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd06.sh new file mode 100644 index 000000000..3ae4eeb5d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgsnd06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgsnd06 msgsnd06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgsnd06 msgsnd06 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgsnd06 msgsnd06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgstress01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgstress01.sh new file mode 100644 index 000000000..e7b6c01b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_msgstress01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc msgstress01 msgstress01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s msgstress01 msgstress01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc msgstress01 msgstress01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl01.sh new file mode 100644 index 000000000..cd588dde9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semctl01 semctl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semctl01 semctl01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semctl01 semctl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl02.sh new file mode 100644 index 000000000..3d5137d62 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semctl02 semctl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semctl02 semctl02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semctl02 semctl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl03.sh new file mode 100644 index 000000000..c3877541b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semctl03 semctl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semctl03 semctl03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semctl03 semctl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl04.sh new file mode 100644 index 000000000..fd8e64ea2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semctl04 semctl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semctl04 semctl04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semctl04 semctl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl05.sh new file mode 100644 index 000000000..732493b31 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semctl05 semctl05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semctl05 semctl05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semctl05 semctl05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl06.sh new file mode 100644 index 000000000..81c135ba9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semctl06 semctl06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semctl06 semctl06 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semctl06 semctl06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl07.sh new file mode 100644 index 000000000..2fa5b9e31 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semctl07 semctl07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semctl07 semctl07 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semctl07 semctl07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl08.sh new file mode 100644 index 000000000..6358e309e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semctl08 semctl08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semctl08 semctl08 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semctl08 semctl08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl09.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl09.sh new file mode 100644 index 000000000..f90405fe9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semctl09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semctl09 semctl09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semctl09 semctl09 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semctl09 semctl09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget01.sh new file mode 100644 index 000000000..0b6726d68 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semget01 semget01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semget01 semget01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semget01 semget01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget02.sh new file mode 100644 index 000000000..3d95ea4ee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semget02 semget02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semget02 semget02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semget02 semget02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget05.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget05.sh new file mode 100644 index 000000000..70b7f170e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semget05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semget05 semget05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semget05 semget05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semget05 semget05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop01.sh new file mode 100644 index 000000000..c11cf12a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semop01 semop01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semop01 semop01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semop01 semop01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop02.sh new file mode 100644 index 000000000..917a0fcca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semop02 semop02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semop02 semop02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semop02 semop02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop03.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop03.sh new file mode 100644 index 000000000..782cefd82 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_semop03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc semop03 semop03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s semop03 semop03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc semop03 semop03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat01.sh new file mode 100644 index 000000000..4996f91e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmat01 shmat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmat01 shmat01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmat01 shmat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat02.sh new file mode 100644 index 000000000..c14947bd5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmat02 shmat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmat02 shmat02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmat02 shmat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat04.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat04.sh new file mode 100644 index 000000000..ba431c30d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmat04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmat04 shmat04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmat04 shmat04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmat04 shmat04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl01.sh new file mode 100644 index 000000000..a21ec31fd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmctl01 shmctl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmctl01 shmctl01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmctl01 shmctl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl02.sh new file mode 100644 index 000000000..fdd0c6091 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmctl02 shmctl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmctl02 shmctl02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmctl02 shmctl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl03.sh new file mode 100644 index 000000000..fa4b525e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmctl03 shmctl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmctl03 shmctl03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmctl03 shmctl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl04.sh new file mode 100644 index 000000000..af902229a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmctl04 shmctl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmctl04 shmctl04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmctl04 shmctl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl05.sh new file mode 100644 index 000000000..d3091d688 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmctl05 shmctl05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmctl05 shmctl05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmctl05 shmctl05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl06.sh new file mode 100644 index 000000000..f1434077f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmctl06 shmctl06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmctl06 shmctl06 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmctl06 shmctl06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl07.sh new file mode 100644 index 000000000..f55698c8b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmctl07 shmctl07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmctl07 shmctl07 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmctl07 shmctl07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl08.sh new file mode 100644 index 000000000..aa6a13490 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmctl08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmctl08 shmctl08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmctl08 shmctl08 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmctl08 shmctl08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmdt01.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmdt01.sh new file mode 100644 index 000000000..3dc73f6a3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmdt01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmdt01 shmdt01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmdt01 shmdt01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmdt01 shmdt01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmdt02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmdt02.sh new file mode 100644 index 000000000..3e0ade170 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmdt02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmdt02 shmdt02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmdt02 shmdt02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmdt02 shmdt02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget02.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget02.sh new file mode 100644 index 000000000..c745cc3f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmget02 shmget02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmget02 shmget02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmget02 shmget02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget03.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget03.sh new file mode 100644 index 000000000..cb439a86e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmget03 shmget03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmget03 shmget03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmget03 shmget03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget04.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget04.sh new file mode 100644 index 000000000..2bffab6eb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmget04 shmget04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmget04 shmget04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmget04 shmget04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget05.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget05.sh new file mode 100644 index 000000000..26a474095 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmget05 shmget05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmget05 shmget05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmget05 shmget05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget06.sh b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget06.sh new file mode 100644 index 000000000..df59fb099 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls-ipc/oe_test_ltp_syscalls-ipc_shmget06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls-ipc shmget06 shmget06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls-ipc -s shmget06 shmget06 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls-ipc shmget06 shmget06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_abort01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_abort01.sh index fce64e97d..3ecb1b257 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_abort01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_abort01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s abort01 abort01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls abort01 abort01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept01.sh index 7ef623c99..e37d83b70 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s accept01 accept01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls accept01 accept01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept02.sh index 4aaaba1bd..6d6ed190d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s accept02 accept02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls accept02 accept02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept03.sh new file mode 100644 index 000000000..68179c3ac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls accept03 accept03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s accept03 accept03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls accept03 accept03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept4_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept4_01.sh index 2533d7da3..4242f9a02 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept4_01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept4_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s accept4_01 accept4_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls accept4_01 accept4_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access01.sh index d4d20a576..43000053e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s access01 access01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls access01 access01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access02.sh index 2de90ff4e..0b3375117 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s access02 access02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls access02 access02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access03.sh index cd9389f39..0d8d7dda6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s access03 access03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls access03 access03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access04.sh index 897708cec..987d994fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s access04 access04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls access04 access04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct01.sh index 8c3cbd942..51f6d67e0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s acct01 acct01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls acct01 acct01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct02.sh index 6b19fc7ab..205a0e0aa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s acct02 acct02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls acct02 acct02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key01.sh index 92abb4f4f..6b2fc8dee 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s add_key01 add_key01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls add_key01 add_key01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key02.sh index a2111b91f..9e23f9b66 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s add_key02 add_key02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls add_key02 add_key02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key03.sh index 258f0d2b4..4b65c6073 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s add_key03 add_key03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls add_key03 add_key03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key04.sh index bbf4f23ca..6bc6201e5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s add_key04 add_key04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls add_key04 add_key04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key05.sh index 6eecf76ed..22a041b7c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s add_key05 add_key05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls add_key05 add_key05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex01.sh index 339b452e7..4e1c872a5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s adjtimex01 adjtimex01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls adjtimex01 adjtimex01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex02.sh index 06cc69ded..67b6ba21a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s adjtimex02 adjtimex02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls adjtimex02 adjtimex02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex03.sh index 99f44eb45..c06feaabf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s adjtimex03 adjtimex03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls adjtimex03 adjtimex03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm02.sh index f44d26677..180eeea69 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s alarm02 alarm02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls alarm02 alarm02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm03.sh index 090cf19fe..507a5557a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s alarm03 alarm03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls alarm03 alarm03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm05.sh index f21eae695..f2941a976 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s alarm05 alarm05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls alarm05 alarm05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm06.sh index 388d0ff1e..8bb7bc646 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s alarm06 alarm06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls alarm06 alarm06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm07.sh index e5b074e91..49015ef67 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s alarm07 alarm07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls alarm07 alarm07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_arch_prctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_arch_prctl01.sh new file mode 100644 index 000000000..178132729 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_arch_prctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls arch_prctl01 arch_prctl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s arch_prctl01 arch_prctl01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls arch_prctl01 arch_prctl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind01.sh index c3aaf4498..91ae9caf7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bind01 bind01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bind01 bind01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind02.sh index 3d5b29373..3cebd4cfd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bind02 bind02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bind02 bind02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind03.sh index 033742a0b..f9303132f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bind03 bind03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bind03 bind03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind04.sh index 68bdec5d2..75bfdf19e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bind04 bind04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bind04 bind04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind05.sh index 452fb1c0f..12fee0b22 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bind05 bind05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bind05 bind05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind06.sh index 464a55bc0..c03c264d1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bind06 bind06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bind06 bind06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_map01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_map01.sh index bd9aca7b1..f67a54706 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_map01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_map01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bpf_map01 bpf_map01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bpf_map01 bpf_map01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog01.sh index 964bf2376..66d23719a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bpf_prog01 bpf_prog01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bpf_prog01 bpf_prog01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog02.sh index 869d9fa20..e4861e225 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bpf_prog02 bpf_prog02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bpf_prog02 bpf_prog02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog03.sh index aaddbc273..0574502be 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bpf_prog03 bpf_prog03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bpf_prog03 bpf_prog03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog04.sh index 0b5771c39..dbeddc812 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bpf_prog04 bpf_prog04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bpf_prog04 bpf_prog04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog05.sh index 2202a3675..c09c8ea24 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bpf_prog05 bpf_prog05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bpf_prog05 bpf_prog05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog06.sh index 95f2ff951..3e46699dd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bpf_prog06 bpf_prog06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bpf_prog06 bpf_prog06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog07.sh index da3dc04b3..c5290d0e3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s bpf_prog07 bpf_prog07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls bpf_prog07 bpf_prog07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk01.sh index 0d41ee9ed..1de8ea430 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s brk01 brk01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls brk01 brk01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk02.sh index 32f6eead0..e593186ed 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s brk02 brk02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls brk02 brk02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cacheflush01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cacheflush01.sh index 6a1643b1c..540711406 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cacheflush01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cacheflush01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s cacheflush01 cacheflush01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls cacheflush01 cacheflush01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat01.sh new file mode 100644 index 000000000..5f321c66e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls cachestat01 cachestat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s cachestat01 cachestat01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls cachestat01 cachestat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat02.sh new file mode 100644 index 000000000..161db9794 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls cachestat02 cachestat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s cachestat02 cachestat02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls cachestat02 cachestat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat03.sh new file mode 100644 index 000000000..ec08fe223 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls cachestat03 cachestat03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s cachestat03 cachestat03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls cachestat03 cachestat03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat04.sh new file mode 100644 index 000000000..d5c8f5778 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cachestat04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls cachestat04 cachestat04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s cachestat04 cachestat04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls cachestat04 cachestat04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget01.sh index 6d8a88233..bf409a265 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s capget01 capget01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls capget01 capget01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget02.sh index 128154908..93eb27f92 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s capget02 capget02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls capget02 capget02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset01.sh index 293ade6f7..623f025df 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s capset01 capset01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls capset01 capset01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset02.sh index 1b52aa4b1..bc06776ee 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s capset02 capset02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls capset02 capset02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset03.sh index 08e707379..55c623647 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s capset03 capset03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls capset03 capset03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset04.sh index 25589a14f..0ef26b553 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s capset04 capset04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls capset04 capset04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01.sh index 57b581af4..516dadde0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chdir01 chdir01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chdir01 chdir01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01A.sh index 8f083bc0b..ad02a800c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01A.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01A.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chdir01A symlink01 -T chdir01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chdir01A symlink01 -T chdir01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir04.sh index 94e6957af..0e17e2bfe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chdir04 chdir04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chdir04 chdir04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01.sh index 09ccedce4..e8a661d83 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chmod01 chmod01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chmod01 chmod01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01A.sh index 8a14cec6f..93dc06b1d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01A.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01A.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chmod01A symlink01 -T chmod01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chmod01A symlink01 -T chmod01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod03.sh index 0c92dcda6..d78fefe7c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chmod03 chmod03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chmod03 chmod03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod05.sh index 9f08e3571..8a17013ed 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chmod05 chmod05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chmod05 chmod05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod06.sh index cba83ec92..14c0b96f2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chmod06 chmod06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chmod06 chmod06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod07.sh index 18ac9bdac..31e7dc760 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chmod07 chmod07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chmod07 chmod07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod08.sh new file mode 100644 index 000000000..4cfacc3fd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls chmod08 chmod08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s chmod08 chmod08 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls chmod08 chmod08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01.sh index 2bfb15e85..842c45ed1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown01 chown01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown01 chown01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01_16.sh index b8deb3b07..5caf34fda 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown01_16 chown01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown01_16 chown01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02.sh index 5c43b4aba..09cb54466 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown02 chown02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown02 chown02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02_16.sh index 535253999..b0f2a1ee9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown02_16 chown02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown02_16 chown02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03.sh index 175d6c4f8..10b212d26 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown03 chown03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown03 chown03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03_16.sh index ff6c11344..e03fe706a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown03_16 chown03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown03_16 chown03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04.sh index 41ad5dc4e..71737e9e2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown04 chown04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown04 chown04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04_16.sh index 7feb601b8..72f24b269 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown04_16 chown04_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown04_16 chown04_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05.sh index 81cf0d03b..ec9696b62 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown05 chown05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown05 chown05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05_16.sh index 6729b3cdf..acaf42b53 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chown05_16 chown05_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chown05_16 chown05_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot01.sh index bfee4dc57..930c9fc4c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chroot01 chroot01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chroot01 chroot01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot02.sh index 8990a5411..3c6ec9897 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chroot02 chroot02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chroot02 chroot02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot03.sh index 436e37b3c..702f12512 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chroot03 chroot03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chroot03 chroot03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot04.sh index aebdea3bd..6fa31bd04 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s chroot04 chroot04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls chroot04 chroot04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime01.sh index 84f186024..f502af227 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_adjtime01 clock_adjtime01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_adjtime01 clock_adjtime01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime02.sh index 00e7e7ac0..2961a02a3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_adjtime02 clock_adjtime02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_adjtime02 clock_adjtime02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_getres01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_getres01.sh index 4c681a888..e3c3e7fe1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_getres01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_getres01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_getres01 clock_getres01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_getres01 clock_getres01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime01.sh index 02d2b3682..4ba24bb3f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_gettime01 clock_gettime01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_gettime01 clock_gettime01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime02.sh index df74d5dd3..0a8121535 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_gettime02 clock_gettime02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_gettime02 clock_gettime02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime03.sh index fdb167ea5..1bed85155 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_gettime03 clock_gettime03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_gettime03 clock_gettime03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime04.sh index b07a2cfd8..e4b087a4b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_gettime04 clock_gettime04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_gettime04 clock_gettime04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep01.sh index d20ba3692..9bf1f22c6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_nanosleep01 clock_nanosleep01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_nanosleep01 clock_nanosleep01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep02.sh index cbaaade2d..124f6b436 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_nanosleep02 clock_nanosleep02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_nanosleep02 clock_nanosleep02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep03.sh index ee0465335..d5abd44a2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_nanosleep03 clock_nanosleep03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_nanosleep03 clock_nanosleep03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep04.sh index 257813b6d..5915ee1d7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_nanosleep04 clock_nanosleep04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_nanosleep04 clock_nanosleep04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime01.sh index fe3f8ce52..f1716e542 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_settime01 clock_settime01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_settime01 clock_settime01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime02.sh index 3b38b276a..d1e9f701b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_settime02 clock_settime02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_settime02 clock_settime02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime03.sh index 26a2bbeec..b7def200d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clock_settime03 clock_settime03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clock_settime03 clock_settime03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone01.sh index fcf01e672..bfa338562 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone01 clone01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone01 clone01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone02.sh index 867069a86..dae7f0bdc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone02 clone02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone02 clone02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone03.sh index 4ae0ad830..092338a35 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone03 clone03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone03 clone03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone04.sh index 97614136d..2168c97c7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone04 clone04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone04 clone04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone05.sh index ac59d9583..b32724d06 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone05 clone05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone05 clone05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone06.sh index f81c4f78e..5c04bf929 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone06 clone06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone06 clone06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone07.sh index 42c3b7ac8..ae67ca110 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone07 clone07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone07 clone07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone08.sh index abebfc8ae..5eb2f7618 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone08 clone08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone08 clone08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone09.sh index a7d2331f2..9b872d27b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone09 clone09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone09 clone09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone301.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone301.sh index 00baf59fd..90ffc465d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone301.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone301.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone301 clone301 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone301 clone301 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone302.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone302.sh index e3cdcfc6b..967822e8e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone302.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone302.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone302 clone302 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone302 clone302 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone303.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone303.sh index 78cd28317..b90bd7e91 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone303.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone303.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s clone303 clone303 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls clone303 clone303 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close01.sh index 0ea3f0674..78e284ee8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s close01 close01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls close01 close01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close02.sh index 377c4a5bd..59e675aa7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s close02 close02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls close02 close02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range01.sh index f2e58c06b..e77d4dc64 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s close_range01 close_range01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls close_range01 close_range01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range02.sh index 79cc25a45..18d88fee5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s close_range02 close_range02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls close_range02 close_range02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_confstr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_confstr01.sh index e03e0bde3..ca2eaaef1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_confstr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_confstr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s confstr01 confstr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls confstr01 confstr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect01.sh index 66a673881..f9c68e0e5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s connect01 connect01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls connect01 connect01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect02.sh index d6d4c3b78..069398c6f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s connect02 connect02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls connect02 connect02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range01.sh index ac54dd587..f535c1dab 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s copy_file_range01 copy_file_range01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls copy_file_range01 copy_file_range01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range02.sh index b5f4738fa..45e0b7d97 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s copy_file_range02 copy_file_range02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls copy_file_range02 copy_file_range02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range03.sh index b8103fac8..bbf576f4e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s copy_file_range03 copy_file_range03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls copy_file_range03 copy_file_range03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat01.sh index 4ddbd4147..b21854eb8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s creat01 creat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls creat01 creat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat03.sh index 6c7d30133..d38066b3e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s creat03 creat03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls creat03 creat03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat04.sh index 188da0b02..57e6eb92a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s creat04 creat04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls creat04 creat04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat05.sh index d00204dfc..0c0ce3d6f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s creat05 creat05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls creat05 creat05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat06.sh index af4df0b54..add92a6f1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s creat06 creat06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls creat06 creat06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat07.sh index b5a9dd537..e80539756 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s creat07 creat07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls creat07 creat07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat08.sh index 999471200..2e38ff0c1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s creat08 creat08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls creat08 creat08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat09.sh index f29891cda..fe329d629 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s creat09 creat09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls creat09 creat09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module01.sh index b569843f7..2870d47a1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s delete_module01 delete_module01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls delete_module01 delete_module01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module02.sh index b906dd65e..ca278c2c8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s delete_module02 delete_module02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls delete_module02 delete_module02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module03.sh index f33cc5d0d..3264fabc5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s delete_module03 delete_module03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls delete_module03 delete_module03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w.sh index 14c4939f4..443babee4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dirtyc0w dirtyc0w - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dirtyc0w dirtyc0w failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w_shmem.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w_shmem.sh index 9df912eb5..def2e2c7f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w_shmem.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w_shmem.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dirtyc0w_shmem dirtyc0w_shmem - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dirtyc0w_shmem dirtyc0w_shmem failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtypipe.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtypipe.sh index 7ec97c0aa..6eee70270 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtypipe.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtypipe.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dirtypipe dirtypipe - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dirtypipe dirtypipe failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup01.sh index 9553a42b1..1f42f8833 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup01 dup01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup01 dup01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup02.sh index e51c43407..1a2bd4aac 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup02 dup02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup02 dup02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup03.sh index 1161e54fb..e6f24fb92 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup03 dup03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup03 dup03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup04.sh index 302bb4a24..eef11f9e3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup04 dup04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup04 dup04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup05.sh index 6ed7d37fa..34e075f39 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup05 dup05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup05 dup05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup06.sh index 77c2d02b1..beb6401fe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup06 dup06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup06 dup06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup07.sh index be5b504d7..91f35381c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup07 dup07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup07 dup07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup201.sh index ad39a395a..1ddce4ad4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup201.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup201.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup201 dup201 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup201 dup201 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup202.sh index 785e7860a..9c0d8258b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup202.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup202.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup202 dup202 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup202 dup202 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup203.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup203.sh index a043fcc1b..9f5de2569 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup203.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup203.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup203 dup203 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup203 dup203 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup204.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup204.sh index 105e6a9c1..0ee75ab15 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup204.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup204.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup204 dup204 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup204 dup204 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup205.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup205.sh index 6cc4f396b..ce5f64cbf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup205.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup205.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup205 dup205 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup205 dup205 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup206.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup206.sh index 89db20839..74079d112 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup206.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup206.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup206 dup206 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup206 dup206 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup207.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup207.sh index 514924f9c..7a84f0af5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup207.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup207.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup207 dup207 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup207 dup207 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_01.sh index 443cb51fb..86fc07212 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup3_01 dup3_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup3_01 dup3_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_02.sh index 360cbfaeb..0ab342760 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s dup3_02 dup3_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls dup3_02 dup3_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll01.sh index 76c55a698..05f354c18 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll01 epoll-ltp - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll01 epoll-ltp failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create01.sh index c4745abfd..d3b5319a6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_create01 epoll_create01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_create01 epoll_create01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create02.sh index 60e92bac6..2c0aa8166 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_create02 epoll_create02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_create02 epoll_create02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_01.sh index 6787614e5..8d768a390 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_create1_01 epoll_create1_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_create1_01 epoll_create1_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_02.sh index 1670e048a..a488315d3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_create1_02 epoll_create1_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_create1_02 epoll_create1_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl01.sh index f89732249..4257089fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_ctl01 epoll_ctl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_ctl01 epoll_ctl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl02.sh index 4fdc742aa..b135c2592 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_ctl02 epoll_ctl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_ctl02 epoll_ctl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl03.sh index 067e8fc2a..c6f8ce623 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_ctl03 epoll_ctl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_ctl03 epoll_ctl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl04.sh index 98e218c9b..c92883a63 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_ctl04 epoll_ctl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_ctl04 epoll_ctl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl05.sh index 9f49a56c1..6df2c53eb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_ctl05 epoll_ctl05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_ctl05 epoll_ctl05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait01.sh index 14c3d0f1b..64639bbc6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_pwait01 epoll_pwait01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_pwait01 epoll_pwait01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait02.sh index 183f58d96..902e7147c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_pwait02 epoll_pwait02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_pwait02 epoll_pwait02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait03.sh index 1a9fc68ab..9b05acb94 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_pwait03 epoll_pwait03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_pwait03 epoll_pwait03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait04.sh index 243bc2637..c69c32b7c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_pwait04 epoll_pwait04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_pwait04 epoll_pwait04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait05.sh index 26da0b4f2..41a09b455 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_pwait05 epoll_pwait05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_pwait05 epoll_pwait05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait01.sh index 3cbf65692..47242d021 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_wait01 epoll_wait01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_wait01 epoll_wait01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait02.sh index 5beb708d3..2e7fe7a30 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_wait02 epoll_wait02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_wait02 epoll_wait02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait03.sh index de52bd1f8..90405709f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_wait03 epoll_wait03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_wait03 epoll_wait03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait04.sh index 92e9e42f3..7bfe87fda 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_wait04 epoll_wait04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_wait04 epoll_wait04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait05.sh index e050e537e..2af99f8ac 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_wait05 epoll_wait05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_wait05 epoll_wait05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait06.sh index 9acb8d787..f2da51025 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_wait06 epoll_wait06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_wait06 epoll_wait06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait07.sh index 6c43539a1..8728e270d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s epoll_wait07 epoll_wait07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls epoll_wait07 epoll_wait07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd01.sh index 9849751e3..21dd612f5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s eventfd01 eventfd01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls eventfd01 eventfd01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd02.sh index 056c056a3..59374f448 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s eventfd02 eventfd02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls eventfd02 eventfd02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd03.sh index 5a46fb616..357141c0d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s eventfd03 eventfd03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls eventfd03 eventfd03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd04.sh index f4061e552..4d1312d16 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s eventfd04 eventfd04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls eventfd04 eventfd04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd05.sh index 8636ec4fa..2d2f06288 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s eventfd05 eventfd05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls eventfd05 eventfd05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd06.sh index 415976ced..69804e24c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s eventfd06 eventfd06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls eventfd06 eventfd06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_01.sh index 63b593cb0..6fb7e4f55 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s eventfd2_01 eventfd2_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls eventfd2_01 eventfd2_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_02.sh index 602737e6f..3d4e79704 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s eventfd2_02 eventfd2_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls eventfd2_02 eventfd2_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_03.sh index 6f03bf2d2..5e8cd9e93 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s eventfd2_03 eventfd2_03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls eventfd2_03 eventfd2_03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execl01.sh index 26353aeef..5a17f7174 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execl01 execl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execl01 execl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execle01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execle01.sh index 76f308fe6..09c54377d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execle01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execle01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execle01 execle01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execle01 execle01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execlp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execlp01.sh index 9a6866f49..178651ebd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execlp01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execlp01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execlp01 execlp01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execlp01 execlp01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execv01.sh index 99cbf7bf5..14ad1ae73 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execv01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execv01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execv01 execv01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execv01 execv01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve01.sh index 0b2d9b695..97074cab4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execve01 execve01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execve01 execve01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve02.sh index ed6f89181..37820d7aa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execve02 execve02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execve02 execve02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve03.sh index 4fc86844a..fbc1cc61b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execve03 execve03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execve03 execve03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve04.sh index 7ef6416e0..ed3882f92 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execve04 execve04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execve04 execve04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve05.sh index cb6856a46..64c732fd5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execve05 execve05 -i 5 -n 32 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execve05 execve05 -i 5 -n 32 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve06.sh index 933fb5a6d..59303b54d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execve06 execve06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execve06 execve06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat01.sh index a670b04bd..66df3f3ca 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execveat01 execveat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execveat01 execveat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat02.sh index aea9a97f9..284c395a5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execveat02 execveat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execveat02 execveat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat03.sh index 3a5c4e8ff..5eb884875 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execveat03 execveat03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execveat03 execveat03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execvp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execvp01.sh index 12149f301..cd0f51f32 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execvp01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execvp01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s execvp01 execvp01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls execvp01 execvp01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit01.sh index 0558cc235..9a908980c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s exit01 exit01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls exit01 exit01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit02.sh index f89a326ad..df1379932 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s exit02 exit02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls exit02 exit02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit_group01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit_group01.sh index acba5e87e..c5f836031 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit_group01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit_group01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s exit_group01 exit_group01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls exit_group01 exit_group01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat01.sh index 164df2941..08fb18668 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s faccessat01 faccessat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls faccessat01 faccessat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat02.sh index 4c713f1b3..3026a792d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s faccessat02 faccessat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls faccessat02 faccessat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat201.sh index 1f62c0371..42b23b013 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat201.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat201.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s faccessat201 faccessat201 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls faccessat201 faccessat201 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat202.sh index ae6825224..dbf1d21ec 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat202.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat202.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s faccessat202 faccessat202 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls faccessat202 faccessat202 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate01.sh index da57223e2..756317b6f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fallocate01 fallocate01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fallocate01 fallocate01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate02.sh index fd3fbcfb1..87886fcbc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fallocate02 fallocate02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fallocate02 fallocate02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate03.sh index e0707f201..88818b21d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fallocate03 fallocate03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fallocate03 fallocate03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate04.sh index 9c98f7ad0..f20320d78 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fallocate04 fallocate04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fallocate04 fallocate04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate05.sh index ad7b038a2..882a85c36 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fallocate05 fallocate05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fallocate05 fallocate05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate06.sh index 7b87a7738..64fcf8571 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fallocate06 fallocate06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fallocate06 fallocate06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify01.sh index 16cba6a81..e6ebf59e5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify01 fanotify01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify01 fanotify01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify02.sh index a9319d807..2a6c63775 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify02 fanotify02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify02 fanotify02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify03.sh index e63c1d55d..71789d057 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify03 fanotify03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify03 fanotify03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify04.sh index 928f36e31..55b642368 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify04 fanotify04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify04 fanotify04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify05.sh index 73648e4fd..a6dcd1e4d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify05 fanotify05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify05 fanotify05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify06.sh index 409c9bf90..eed0c6c0e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify06 fanotify06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify06 fanotify06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify07.sh index bb02a40c2..d835d1812 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify07 fanotify07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify07 fanotify07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify08.sh index c9ed749ba..a6d88c0ae 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify08 fanotify08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify08 fanotify08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify09.sh index 616aedc98..97f85c271 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify09 fanotify09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify09 fanotify09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify10.sh index 54f8d4e1c..cad32323b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify10 fanotify10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify10 fanotify10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify11.sh index 7e3c5315b..80759b0b1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify11 fanotify11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify11 fanotify11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify12.sh index 65b7d344d..13e47409c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify12 fanotify12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify12 fanotify12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify13.sh index 20eeda8ea..ebdac590d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify13.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify13 fanotify13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify13 fanotify13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify14.sh index 39f8ada4a..46d08f0e2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify14.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify14 fanotify14 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify14 fanotify14 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify15.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify15.sh index 61713cf0c..23d085d27 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify15.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify15.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify15 fanotify15 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify15 fanotify15 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify16.sh index 7756c4d28..46039f863 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify16 fanotify16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify16 fanotify16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify17.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify17.sh index 431af4f63..225757710 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify17.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify17.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify17 fanotify17 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify17 fanotify17 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify18.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify18.sh index ccfc9638e..a924529e9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify18.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify18.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify18 fanotify18 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify18 fanotify18 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify19.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify19.sh index a7858e4b9..f1fff8d55 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify19.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify19.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify19 fanotify19 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify19 fanotify19 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify20.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify20.sh index c0c019e6f..e82b39f63 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify20.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify20.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify20 fanotify20 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify20 fanotify20 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify21.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify21.sh index abbfe0e1b..1beee891f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify21.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify21.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify21 fanotify21 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify21 fanotify21 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify22.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify22.sh index 198deb670..5689edca4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify22.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify22.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify22 fanotify22 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify22 fanotify22 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify23.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify23.sh index cbcd5fc3d..5a7f50622 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify23.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify23.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fanotify23 fanotify23 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fanotify23 fanotify23 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir01.sh index 65702d853..8f2ace4ad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchdir01 fchdir01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchdir01 fchdir01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir02.sh index c91512361..c1787b913 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchdir02 fchdir02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchdir02 fchdir02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir03.sh index 45ca4c5d6..1afbd99e3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchdir03 fchdir03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchdir03 fchdir03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod01.sh index 91a74f415..b3d7044dc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchmod01 fchmod01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchmod01 fchmod01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod02.sh index ff9239b55..e086aa8f3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchmod02 fchmod02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchmod02 fchmod02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod03.sh index d7e11e918..5bbd53e17 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchmod03 fchmod03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchmod03 fchmod03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod04.sh index 521275314..f579f4fa0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchmod04 fchmod04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchmod04 fchmod04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod05.sh index 83bdfb893..21b9e5886 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchmod05 fchmod05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchmod05 fchmod05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod06.sh index 823c88b8d..0e579672f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchmod06 fchmod06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchmod06 fchmod06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat01.sh index 00e5f2768..fff108c10 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchmodat01 fchmodat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchmodat01 fchmodat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat02.sh index fb97e4d56..ecf26dd9f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchmodat02 fchmodat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchmodat02 fchmodat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat2_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat2_01.sh new file mode 100644 index 000000000..91bb4af63 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat2_01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls fchmodat2_01 fchmodat2_01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s fchmodat2_01 fchmodat2_01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls fchmodat2_01 fchmodat2_01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat2_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat2_02.sh new file mode 100644 index 000000000..3023e3174 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat2_02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls fchmodat2_02 fchmodat2_02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s fchmodat2_02 fchmodat2_02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls fchmodat2_02 fchmodat2_02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01.sh index 7ad962c8d..624ffd6da 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown01 fchown01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown01 fchown01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01_16.sh index e4db45590..48d3a5877 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown01_16 fchown01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown01_16 fchown01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02.sh index b26b63be9..a974a2360 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown02 fchown02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown02 fchown02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02_16.sh index 754f9ceb6..11157ed4a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown02_16 fchown02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown02_16 fchown02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03.sh index 17f19820e..49ff97e84 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown03 fchown03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown03 fchown03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03_16.sh index 0d338236a..990d40896 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown03_16 fchown03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown03_16 fchown03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04.sh index b196d90c0..0fcebb73d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown04 fchown04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown04 fchown04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04_16.sh index cca33f8b4..d547301a6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown04_16 fchown04_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown04_16 fchown04_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05.sh index fef58ef80..cd820c43e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown05 fchown05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown05 fchown05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05_16.sh index 5e0a8ee01..8bdaa41a3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchown05_16 fchown05_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchown05_16 fchown05_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat01.sh index e632138b3..6aee32272 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchownat01 fchownat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchownat01 fchownat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat02.sh index 3322a17fc..e3a16645f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fchownat02 fchownat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fchownat02 fchownat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01.sh index 307094bf5..ed29dcee1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl01 fcntl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl01 fcntl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01_64.sh index a2c72a2a2..20d7327da 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl01_64 fcntl01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl01_64 fcntl01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02.sh index 6b9ea530e..650dbf6ca 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl02 fcntl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl02 fcntl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02_64.sh index 113126e7e..2d8a45319 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl02_64 fcntl02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl02_64 fcntl02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03.sh index 59de155e7..d495de2e2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl03 fcntl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl03 fcntl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03_64.sh index 9e7b2420b..8e48f5295 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl03_64 fcntl03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl03_64 fcntl03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04.sh index 5c8a66e29..a9395667f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl04 fcntl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl04 fcntl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04_64.sh index b8ab844a0..77d51b729 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl04_64 fcntl04_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl04_64 fcntl04_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05.sh index 6230e1067..3c808f575 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl05 fcntl05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl05 fcntl05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05_64.sh index 918f5dc6e..d53ac20a4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl05_64 fcntl05_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl05_64 fcntl05_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07.sh index 1e3277414..818a4e9ed 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl07 fcntl07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl07 fcntl07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07_64.sh index 58086094d..bc10c8652 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl07_64 fcntl07_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl07_64 fcntl07_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08.sh index edfe53a1f..b26833dc0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl08 fcntl08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl08 fcntl08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08_64.sh index b476b966c..815bef534 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl08_64 fcntl08_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl08_64 fcntl08_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09.sh index 9007f7f77..caaed15ad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl09 fcntl09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl09 fcntl09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09_64.sh index 8da2bb05b..d16a8e9f9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl09_64 fcntl09_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl09_64 fcntl09_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10.sh index 5b324f601..8efe546e8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl10 fcntl10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl10 fcntl10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10_64.sh index cf71741a5..40f259790 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl10_64 fcntl10_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl10_64 fcntl10_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11.sh index d94721c2f..852825abc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl11 fcntl11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl11 fcntl11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11_64.sh index 11e1bf5eb..8e9277075 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl11_64 fcntl11_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl11_64 fcntl11_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12.sh index a9ef96443..8c930e83a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl12 fcntl12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl12 fcntl12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12_64.sh index 4d2114808..a0ab58074 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl12_64 fcntl12_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl12_64 fcntl12_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13.sh index 2b166b528..df3496b44 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl13 fcntl13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl13 fcntl13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13_64.sh index 13c5c9dc0..d2f170067 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl13_64 fcntl13_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl13_64 fcntl13_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14.sh index 5477405d5..46b90c804 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl14 fcntl14 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl14 fcntl14 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14_64.sh index a8d7a1678..1e2edaea2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl14_64 fcntl14_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl14_64 fcntl14_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15.sh index 1e41ebd37..06e870ca0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl15 fcntl15 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl15 fcntl15 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15_64.sh index adcf4596b..15d51da3b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl15_64 fcntl15_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl15_64 fcntl15_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16.sh index 34ef0a56d..1a2ed9416 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl16 fcntl16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl16 fcntl16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16_64.sh index bb003d3a1..48d77920d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl16_64 fcntl16_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl16_64 fcntl16_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17.sh index 4c34db261..8ea5a1e0e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl17 fcntl17 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl17 fcntl17 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17_64.sh index 8f170bbda..322199f9c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl17_64 fcntl17_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl17_64 fcntl17_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18.sh index f0fda9af7..feb705775 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl18 fcntl18 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl18 fcntl18 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18_64.sh index f38189944..75ee772fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl18_64 fcntl18_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl18_64 fcntl18_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19.sh index 66366d7d6..d77a911b7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl19 fcntl19 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl19 fcntl19 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19_64.sh index 78c044b77..dffed3443 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl19_64 fcntl19_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl19_64 fcntl19_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20.sh index 0d371a8bb..e5e80180b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl20 fcntl20 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl20 fcntl20 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20_64.sh index 493bcef07..b8faed2aa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl20_64 fcntl20_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl20_64 fcntl20_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21.sh index cf07d0ff1..28c245a9f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl21 fcntl21 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl21 fcntl21 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21_64.sh index 78a603c62..4e1c9261d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl21_64 fcntl21_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl21_64 fcntl21_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22.sh index af2ed2e41..d93c8f821 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl22 fcntl22 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl22 fcntl22 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22_64.sh index 78d71fc91..7b86a4f99 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl22_64 fcntl22_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl22_64 fcntl22_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23.sh index 46f45cc2c..9b752e492 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl23 fcntl23 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl23 fcntl23 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23_64.sh index 56d13d779..16de595ba 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl23_64 fcntl23_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl23_64 fcntl23_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24.sh index f147907b5..4e6801938 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl24 fcntl24 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl24 fcntl24 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24_64.sh index b572a5114..3df19986c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl24_64 fcntl24_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl24_64 fcntl24_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25.sh index f66d11b78..7f5517fb4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl25 fcntl25 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl25 fcntl25 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25_64.sh index 8cd6b4bdf..2bcc13204 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl25_64 fcntl25_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl25_64 fcntl25_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26.sh index 5f64a27b6..46d9eacd6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl26 fcntl26 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl26 fcntl26 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26_64.sh index e3bf24d89..c8219d7eb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl26_64 fcntl26_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl26_64 fcntl26_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27.sh index 4b30f8309..f3ed324e9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl27 fcntl27 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl27 fcntl27 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27_64.sh index ac1b93caa..4ff8f89b8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl27_64 fcntl27_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl27_64 fcntl27_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29.sh index b2a996738..24da9e98f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl29 fcntl29 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl29 fcntl29 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29_64.sh index 87f3d53ee..c5c98692a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl29_64 fcntl29_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl29_64 fcntl29_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30.sh index 7aebe9613..372c676d5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl30 fcntl30 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl30 fcntl30 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30_64.sh index 974c9f487..d66e9c888 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl30_64 fcntl30_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl30_64 fcntl30_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31.sh index f90d46d48..ed23954c3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl31 fcntl31 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl31 fcntl31 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31_64.sh index d32a757e5..5b13ffcbb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl31_64 fcntl31_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl31_64 fcntl31_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32.sh index 01ee0ce99..2e721656f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl32 fcntl32 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl32 fcntl32 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32_64.sh index 3ac1c938d..4d1d650d0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl32_64 fcntl32_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl32_64 fcntl32_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33.sh index 2b549c217..b11fd6d08 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl33 fcntl33 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl33 fcntl33 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33_64.sh index f82cb4011..1736080e7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl33_64 fcntl33_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl33_64 fcntl33_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34.sh index cdb297250..b9e524f0e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl34 fcntl34 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl34 fcntl34 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34_64.sh index 8832f4734..07efc20fc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl34_64 fcntl34_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl34_64 fcntl34_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35.sh index bc0a223b0..a8807ba01 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl35 fcntl35 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl35 fcntl35 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35_64.sh index f79b6a7d6..d17b94921 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl35_64 fcntl35_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl35_64 fcntl35_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36.sh index 894bf7c99..5a189f3af 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl36 fcntl36 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl36 fcntl36 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36_64.sh index 5a7bf4831..fa56f558b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl36_64 fcntl36_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl36_64 fcntl36_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37.sh index 974f71e8e..b12bb3d0c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl37 fcntl37 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl37 fcntl37 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37_64.sh index 7ddcb3c23..e7535e278 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl37_64 fcntl37_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl37_64 fcntl37_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38.sh index f2454f07f..900d50196 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl38 fcntl38 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl38 fcntl38 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38_64.sh index 9fed12106..40e391b02 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl38_64 fcntl38_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl38_64 fcntl38_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39.sh index 471812788..4f67a7890 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl39 fcntl39 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl39 fcntl39 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39_64.sh index 40076ffd6..ca1a29f6c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fcntl39_64 fcntl39_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fcntl39_64 fcntl39_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync01.sh index e0f5469c1..15fa6ed86 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fdatasync01 fdatasync01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fdatasync01 fdatasync01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync02.sh index 46ee8e36e..cf14001fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fdatasync02 fdatasync02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fdatasync02 fdatasync02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync03.sh index 1b61e61a1..6d51f0bce 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fdatasync03 fdatasync03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fdatasync03 fdatasync03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr01.sh index 25070745f..b47fce369 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fgetxattr01 fgetxattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fgetxattr01 fgetxattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr02.sh index eeb2462c6..d86f2f75d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fgetxattr02 fgetxattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fgetxattr02 fgetxattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr03.sh index e47199a65..3a207db69 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fgetxattr03 fgetxattr03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fgetxattr03 fgetxattr03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module01.sh index 4efcb4a01..8edb574b3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s finit_module01 finit_module01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls finit_module01 finit_module01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module02.sh index c94f89266..41d2f145c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s finit_module02 finit_module02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls finit_module02 finit_module02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr01.sh index 103dca76a..cc6d45e73 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s flistxattr01 flistxattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls flistxattr01 flistxattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr02.sh index c3894e710..1b7f85de3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s flistxattr02 flistxattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls flistxattr02 flistxattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr03.sh index 129ced77e..5981dd7cc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s flistxattr03 flistxattr03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls flistxattr03 flistxattr03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock01.sh index 4e5cdde37..8245da2bf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s flock01 flock01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls flock01 flock01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock02.sh index 310082c23..d6fad6914 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s flock02 flock02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls flock02 flock02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock03.sh index 4818f36f0..679759395 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s flock03 flock03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls flock03 flock03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock04.sh index 4785ead74..628bb98f8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s flock04 flock04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls flock04 flock04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock06.sh index 886ba99c8..5e46f043a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s flock06 flock06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls flock06 flock06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fmtmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fmtmsg01.sh index 8380251d4..bbf07780e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fmtmsg01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fmtmsg01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fmtmsg01 fmtmsg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fmtmsg01 fmtmsg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork01.sh index afbd96e18..d8c4b9b16 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork01 fork01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork01 fork01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork03.sh index 161b702b3..8675ae431 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork03 fork03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork03 fork03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork04.sh index beb548479..dc07f1f98 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork04 fork04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork04 fork04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork05.sh index e9f8b35ba..d73e3df5a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork05 fork05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork05 fork05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork06.sh index dd28c93b8..ef2e9a92f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork06 fork_procs -n 1000 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork06 fork_procs -n 1000 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork07.sh index 63792e002..28bf5bd9c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork07 fork07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork07 fork07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork08.sh index 8da40f6ae..440de483d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork08 fork08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork08 fork08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork09.sh index 1f80c7d41..12b05e5c9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork09 fork09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork09 fork09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork10.sh index 8ba636710..670d438a8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork10 fork10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork10 fork10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork11.sh index f46c66bd6..97d4816c3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork11 fork_procs -n 100 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork11 fork_procs -n 100 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork13.sh index 7847dce68..3d60c4938 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork13.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork13 fork13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork13 fork13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork14.sh index 460b3716c..3fab65b3b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork14.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fork14 fork14 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fork14 fork14 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fpathconf01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fpathconf01.sh index f9b8f83c4..49384b7ad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fpathconf01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fpathconf01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fpathconf01 fpathconf01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fpathconf01 fpathconf01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr01.sh index 598bdddc3..e9b13e4fe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fremovexattr01 fremovexattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fremovexattr01 fremovexattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr02.sh index efb8565e1..0f81edeac 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fremovexattr02 fremovexattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fremovexattr02 fremovexattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig01.sh index c35f845ec..3decce605 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsconfig01 fsconfig01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsconfig01 fsconfig01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig02.sh index a0609fe16..3a0a67d8e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsconfig02 fsconfig02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsconfig02 fsconfig02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig03.sh index c88c4084c..81b1cf926 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsconfig03 fsconfig03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsconfig03 fsconfig03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr01.sh index 1d5a01490..818766ba2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsetxattr01 fsetxattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsetxattr01 fsetxattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr02.sh index f2c60d3ba..031bb05e1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsetxattr02 fsetxattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsetxattr02 fsetxattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount01.sh index a03663f83..8dadbc59f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsmount01 fsmount01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsmount01 fsmount01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount02.sh index cf23f9ef6..9630d7c72 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsmount02 fsmount02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsmount02 fsmount02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen01.sh index ac30fb1df..3d59818fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsopen01 fsopen01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsopen01 fsopen01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen02.sh index d68b33a22..0f4be8c1e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsopen02 fsopen02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsopen02 fsopen02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick01.sh index d7e404404..ab1727979 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fspick01 fspick01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fspick01 fspick01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick02.sh index c4347d199..c409b882c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fspick02 fspick02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fspick02 fspick02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02.sh index daecf9dd6..d0e0e9e4e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fstat02 fstat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fstat02 fstat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02_64.sh index f81e48e5b..813abc03f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fstat02_64 fstat02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fstat02_64 fstat02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03.sh index b855d140b..beda9fc85 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fstat03 fstat03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fstat03 fstat03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03_64.sh index 552737f70..5eedc3ba3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fstat03_64 fstat03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fstat03_64 fstat03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatat01.sh index 45dc61713..1d2ea2157 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fstatat01 fstatat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fstatat01 fstatat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01.sh index 12aa05221..d59942b8f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fstatfs01 fstatfs01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fstatfs01 fstatfs01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01_64.sh index fa131dbe0..1fa35e48f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fstatfs01_64 fstatfs01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fstatfs01_64 fstatfs01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02.sh index 19d9fec22..16f837079 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fstatfs02 fstatfs02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fstatfs02 fstatfs02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02_64.sh index 33446abc2..0a204d012 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fstatfs02_64 fstatfs02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fstatfs02_64 fstatfs02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync01.sh index 401c59ac1..cfa005a3d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsync01 fsync01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsync01 fsync01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync02.sh index 012694e55..ea016e708 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsync02 fsync02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsync02 fsync02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync03.sh index 9e5010259..813a64219 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsync03 fsync03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsync03 fsync03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync04.sh index 7bb942d5d..4fe630fa2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s fsync04 fsync04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls fsync04 fsync04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01.sh index f714b1f8c..9419d99cb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ftruncate01 ftruncate01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ftruncate01 ftruncate01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01_64.sh index 86e691221..d48cdbc45 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ftruncate01_64 ftruncate01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ftruncate01_64 ftruncate01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03.sh index a07e355a1..f265fafae 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ftruncate03 ftruncate03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ftruncate03 ftruncate03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03_64.sh index 6fd08bd40..047c43b6a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ftruncate03_64 ftruncate03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ftruncate03_64 ftruncate03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04.sh index 473f902b3..aa7243c24 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ftruncate04 ftruncate04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ftruncate04 ftruncate04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04_64.sh index 1fa7f02dc..5ef6b212d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ftruncate04_64 ftruncate04_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ftruncate04_64 ftruncate04_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue01.sh index 431a31d6b..20d252d94 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_cmp_requeue01 futex_cmp_requeue01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_cmp_requeue01 futex_cmp_requeue01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue02.sh index c83db6cb9..35daed905 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_cmp_requeue02 futex_cmp_requeue02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_cmp_requeue02 futex_cmp_requeue02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait01.sh index 4ce073589..2f6c21325 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wait01 futex_wait01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wait01 futex_wait01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait02.sh index ad4df6728..408524a92 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wait02 futex_wait02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wait02 futex_wait02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait03.sh index 932b67de4..143dcc7d4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wait03 futex_wait03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wait03 futex_wait03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait04.sh index b3a86365c..6d7863e31 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wait04 futex_wait04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wait04 futex_wait04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait05.sh index 9fed558ba..62bf93e2b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wait05 futex_wait05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wait05 futex_wait05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait_bitset01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait_bitset01.sh index 3d65b9118..194d200dd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait_bitset01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait_bitset01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wait_bitset01 futex_wait_bitset01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wait_bitset01 futex_wait_bitset01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv01.sh index 7ae00502a..ee0bf1023 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_waitv01 futex_waitv01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_waitv01 futex_waitv01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv02.sh index 278961b53..4c4a1f228 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_waitv02 futex_waitv02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_waitv02 futex_waitv02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv03.sh index 4737690f9..5d2db7264 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_waitv03 futex_waitv03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_waitv03 futex_waitv03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake01.sh index 749b97a25..f87725b25 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wake01 futex_wake01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wake01 futex_wake01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake02.sh index bb2db9c28..ff419d06a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wake02 futex_wake02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wake02 futex_wake02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake03.sh index 6daa4b491..b827789d1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wake03 futex_wake03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wake03 futex_wake03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake04.sh index 604366b61..218e28992 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futex_wake04 futex_wake04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futex_wake04 futex_wake04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futimesat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futimesat01.sh index a7c7902c6..580d64801 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futimesat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futimesat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s futimesat01 futimesat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls futimesat01 futimesat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy01.sh index 2baafe241..60b649bcd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s get_mempolicy01 get_mempolicy01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls get_mempolicy01 get_mempolicy01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy02.sh index 8a9c41b0c..bca6a6e84 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s get_mempolicy02 get_mempolicy02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls get_mempolicy02 get_mempolicy02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_robust_list01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_robust_list01.sh index 15275f8b3..404587af6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_robust_list01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_robust_list01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s get_robust_list01 get_robust_list01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls get_robust_list01 get_robust_list01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcontext01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcontext01.sh index 9e6dfa056..4634984eb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcontext01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcontext01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getcontext01 getcontext01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getcontext01 getcontext01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu01.sh index f1618b575..65970f50a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getcpu01 getcpu01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getcpu01 getcpu01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu02.sh new file mode 100644 index 000000000..974d0baf0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls getcpu02 getcpu02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s getcpu02 getcpu02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls getcpu02 getcpu02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd01.sh index 53cd757ee..e168b9be2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getcwd01 getcwd01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getcwd01 getcwd01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd02.sh index c2cc53544..73da88c5d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getcwd02 getcwd02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getcwd02 getcwd02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd03.sh index a7a9afc18..84fc73979 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getcwd03 getcwd03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getcwd03 getcwd03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd04.sh index a3f34f623..30e1329cd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getcwd04 getcwd04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getcwd04 getcwd04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents01.sh index a4a5309c1..19cd11fcf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getdents01 getdents01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getdents01 getdents01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents02.sh index 3bb944903..5957667b2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getdents02 getdents02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getdents02 getdents02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdomainname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdomainname01.sh index 7197cc150..8fe224096 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdomainname01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdomainname01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getdomainname01 getdomainname01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getdomainname01 getdomainname01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01.sh index 359b134ba..5ce80fa81 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getegid01 getegid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getegid01 getegid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01_16.sh index e94cb347f..1e3a68321 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getegid01_16 getegid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getegid01_16 getegid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02.sh index 6a2f0a86f..394d4eced 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getegid02 getegid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getegid02 getegid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02_16.sh index 6c7c5d147..b140b637e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getegid02_16 getegid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getegid02_16 getegid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01.sh index 9c4e61ffe..bc5afe815 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s geteuid01 geteuid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls geteuid01 geteuid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01_16.sh index f7f7cb265..edb8ad4cb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s geteuid01_16 geteuid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls geteuid01_16 geteuid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02.sh index 34cc2b1cc..c460ddae1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s geteuid02 geteuid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls geteuid02 geteuid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02_16.sh index 2dee0bb55..89358dbb1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s geteuid02_16 geteuid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls geteuid02_16 geteuid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01.sh index 3318a2bf8..80092c88f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getgid01 getgid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getgid01 getgid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01_16.sh index 138d00e42..3bc20698e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getgid01_16 getgid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getgid01_16 getgid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03.sh index a496bc677..696d826f0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getgid03 getgid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getgid03 getgid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03_16.sh index a42e33dc1..82063d4d7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getgid03_16 getgid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getgid03_16 getgid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01.sh index 3383472ef..dfdbfb7a4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getgroups01 getgroups01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getgroups01 getgroups01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01_16.sh index d5ae1a550..bcbb336de 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getgroups01_16 getgroups01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getgroups01_16 getgroups01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03.sh index 226974af6..a236e1cb0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getgroups03 getgroups03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getgroups03 getgroups03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03_16.sh index 13211b9f2..92e9770b8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getgroups03_16 getgroups03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getgroups03_16 getgroups03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostbyname_r01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostbyname_r01.sh index 0849643a7..1a2e408c6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostbyname_r01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostbyname_r01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s gethostbyname_r01 gethostbyname_r01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls gethostbyname_r01 gethostbyname_r01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostid01.sh index da6723463..39acee66a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s gethostid01 gethostid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls gethostid01 gethostid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname01.sh index 5346fa796..3934cc36b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s gethostname01 gethostname01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls gethostname01 gethostname01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname02.sh new file mode 100644 index 000000000..5ed816637 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls gethostname02 gethostname02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s gethostname02 gethostname02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls gethostname02 gethostname02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer01.sh index a2f2bca81..563a2c7eb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getitimer01 getitimer01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getitimer01 getitimer01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer02.sh index 3029bbd30..b0ea3bd47 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getitimer02 getitimer02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getitimer02 getitimer02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpagesize01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpagesize01.sh index caef08320..9c4ef21c3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpagesize01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpagesize01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getpagesize01 getpagesize01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getpagesize01 getpagesize01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpeername01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpeername01.sh index 31c042d9e..d4748072e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpeername01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpeername01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getpeername01 getpeername01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getpeername01 getpeername01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid01.sh index 2c7a9aad5..982ace3b6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getpgid01 getpgid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getpgid01 getpgid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid02.sh index 1a121fd92..ca74a0ba5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getpgid02 getpgid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getpgid02 getpgid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgrp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgrp01.sh index a9e6d2d26..a9543e5d3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgrp01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgrp01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getpgrp01 getpgrp01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getpgrp01 getpgrp01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid01.sh index aa568c235..038bab35d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getpid01 getpid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getpid01 getpid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid02.sh index 84cbcafd8..8062389f0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getpid02 getpid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getpid02 getpid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid01.sh index 9de907541..6babe24ec 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getppid01 getppid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getppid01 getppid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid02.sh index ee00bb074..a26cf1c86 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getppid02 getppid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getppid02 getppid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority01.sh index fd540d7e5..7429f8713 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getpriority01 getpriority01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getpriority01 getpriority01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority02.sh index 50c115e36..4ace4cbf8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getpriority02 getpriority02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getpriority02 getpriority02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom01.sh index 0c37a6887..ec18e67cf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrandom01 getrandom01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrandom01 getrandom01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom02.sh index 91d20cbf4..cb1ef6e81 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrandom02 getrandom02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrandom02 getrandom02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom03.sh index 16e73f2a3..0ed8372ab 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrandom03 getrandom03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrandom03 getrandom03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom04.sh index f4d0d20e8..6f5a2027c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrandom04 getrandom04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrandom04 getrandom04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom05.sh new file mode 100644 index 000000000..ef000ddab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls getrandom05 getrandom05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s getrandom05 getrandom05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls getrandom05 getrandom05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01.sh index f8553dd54..d7080173c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresgid01 getresgid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresgid01 getresgid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01_16.sh index 167ab6a57..1dde4da37 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresgid01_16 getresgid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresgid01_16 getresgid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02.sh index 1b6cb15cd..05f57ff87 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresgid02 getresgid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresgid02 getresgid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02_16.sh index 6d3981e4c..ce681e470 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresgid02_16 getresgid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresgid02_16 getresgid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03.sh index 6ad25b9d0..55026f316 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresgid03 getresgid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresgid03 getresgid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03_16.sh index 8ca38dcb9..b0286e9c4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresgid03_16 getresgid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresgid03_16 getresgid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01.sh index 56b5c8242..dcda009bc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresuid01 getresuid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresuid01 getresuid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01_16.sh index 6982e2a08..ee40d4e74 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresuid01_16 getresuid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresuid01_16 getresuid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02.sh index 6c2cc7aae..669978799 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresuid02 getresuid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresuid02 getresuid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02_16.sh index 07cbc9b26..d43329daf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresuid02_16 getresuid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresuid02_16 getresuid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03.sh index fff48b145..c0c56f123 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresuid03 getresuid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresuid03 getresuid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03_16.sh index 72d817a97..bd398ba28 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getresuid03_16 getresuid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getresuid03_16 getresuid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit01.sh index bc9cccb71..213266781 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrlimit01 getrlimit01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrlimit01 getrlimit01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit02.sh index 1361bf42a..47f515977 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrlimit02 getrlimit02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrlimit02 getrlimit02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit03.sh index 11f23bfdf..8a79be02e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrlimit03 getrlimit03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrlimit03 getrlimit03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage01.sh index f7f3157bf..1a401d2d5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrusage01 getrusage01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrusage01 getrusage01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage02.sh index 293af33b7..38069ea93 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrusage02 getrusage02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrusage02 getrusage02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage03.sh index 0011198e9..7c262473b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrusage03 getrusage03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrusage03 getrusage03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage04.sh index bdfe6e8e5..61f202950 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getrusage04 getrusage04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getrusage04 getrusage04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid01.sh index 7e8210e71..142f482b5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getsid01 getsid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getsid01 getsid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid02.sh index 05052fde7..e2b98e1af 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getsid02 getsid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getsid02 getsid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockname01.sh index b9ff919e8..49a401d17 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockname01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockname01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getsockname01 getsockname01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getsockname01 getsockname01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt01.sh index b5bf4c239..7adbba2af 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getsockopt01 getsockopt01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getsockopt01 getsockopt01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt02.sh index 11a7a473f..4a683a913 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getsockopt02 getsockopt02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getsockopt02 getsockopt02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid01.sh index 8557734e1..218e9d903 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s gettid01 gettid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls gettid01 gettid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid02.sh index ff30f1a56..a447f4c48 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s gettid02 gettid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls gettid02 gettid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday01.sh index 0e27509de..3cda6d6ce 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s gettimeofday01 gettimeofday01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls gettimeofday01 gettimeofday01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday02.sh index 0b76cef04..c054a5ed6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s gettimeofday02 gettimeofday02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls gettimeofday02 gettimeofday02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01.sh index 04ab7bf4f..f21072793 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getuid01 getuid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getuid01 getuid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01_16.sh index 34007fee0..049def54f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getuid01_16 getuid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getuid01_16 getuid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03.sh index c7590ce95..3058446cc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getuid03 getuid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getuid03 getuid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03_16.sh index 85f211ac6..3f80086dc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getuid03_16 getuid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getuid03_16 getuid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr01.sh index c7fd2c1ce..195287f66 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getxattr01 getxattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getxattr01 getxattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr02.sh index dc488596c..a2428be3d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getxattr02 getxattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getxattr02 getxattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr03.sh index 92a95fdab..1061b8808 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getxattr03 getxattr03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getxattr03 getxattr03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr04.sh index fd6363ae8..544637a7e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getxattr04 getxattr04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getxattr04 getxattr04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr05.sh index 9fcf3fe9a..c875c6a39 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s getxattr05 getxattr05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls getxattr05 getxattr05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module01.sh index d6587da0f..58bf7a41e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s init_module01 init_module01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls init_module01 init_module01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module02.sh index 99f26195c..82576085f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s init_module02 init_module02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls init_module02 init_module02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify01.sh index 4a5bd3cab..b97af8934 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify01 inotify01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify01 inotify01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify02.sh index 36cea4208..cd1e90341 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify02 inotify02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify02 inotify02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify03.sh index d49f16fe2..6630cc8a8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify03 inotify03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify03 inotify03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify04.sh index 8062172a5..c1499e035 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify04 inotify04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify04 inotify04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify05.sh index 3ca22b14e..581190ed4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify05 inotify05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify05 inotify05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify06.sh index 79e16d013..be2a28120 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify06 inotify06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify06 inotify06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify07.sh index b1157ae5c..2a83e4601 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify07 inotify07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify07 inotify07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify08.sh index ebc1477b1..eb04f4666 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify08 inotify08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify08 inotify08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify09.sh index d87f3e523..0def6f2a2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify09 inotify09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify09 inotify09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify10.sh index a96af9000..50ff7173d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify10 inotify10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify10 inotify10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify11.sh index 24b075565..c0dead418 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify11 inotify11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify11 inotify11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify12.sh index 84f42db07..837c611fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify12 inotify12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify12 inotify12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_01.sh index 6b8143110..5c23fc833 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify_init1_01 inotify_init1_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify_init1_01 inotify_init1_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_02.sh index 9bb09a3d6..dd464fb06 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s inotify_init1_02 inotify_init1_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls inotify_init1_02 inotify_init1_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel01.sh index 12e808aa4..cb3a975f0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_cancel01 io_cancel01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_cancel01 io_cancel01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel02.sh index d586bbfa3..bf44c1b91 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_cancel02 io_cancel02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_cancel02 io_cancel02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy01.sh index b305d1b85..3187bcecf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_destroy01 io_destroy01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_destroy01 io_destroy01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy02.sh index 5781bbb7c..c0cdde148 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_destroy02 io_destroy02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_destroy02 io_destroy02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents01.sh index 210fca67d..8dd74801a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_getevents01 io_getevents01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_getevents01 io_getevents01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents02.sh index 03e4f5e7e..3893047ff 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_getevents02 io_getevents02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_getevents02 io_getevents02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents01.sh index 562a47274..676cadc4d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_pgetevents01 io_pgetevents01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_pgetevents01 io_pgetevents01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents02.sh index c57af3f0e..488801faf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_pgetevents02 io_pgetevents02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_pgetevents02 io_pgetevents02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup01.sh index 3ba55829e..cf79bd236 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_setup01 io_setup01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_setup01 io_setup01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup02.sh index 0f658a0a8..59325fdca 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_setup02 io_setup02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_setup02 io_setup02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit01.sh index 68be53d3c..194bd642f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_submit01 io_submit01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_submit01 io_submit01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit02.sh index f67041e57..97ea347b5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_submit02 io_submit02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_submit02 io_submit02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit03.sh index b1ee980fa..b6a1068df 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_submit03 io_submit03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_submit03 io_submit03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring01.sh index c0f6114fd..2c4b9d2ce 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_uring01 io_uring01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_uring01 io_uring01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring02.sh index 31f37e788..0f1e05755 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s io_uring02 io_uring02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls io_uring02 io_uring02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl01.sh index 461ed679c..281ba072e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl01 ioctl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl01 ioctl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl02.sh index 67103b5b2..abe9f6048 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl02 test_ioctl - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl02 test_ioctl failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl03.sh index e3fdbdd79..5b96fbcc3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl03 ioctl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl03 ioctl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl04.sh index 911fdcaf6..33c85ce08 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl04 ioctl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl04 ioctl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl05.sh index 5ec59f93a..a33dd6ddb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl05 ioctl05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl05 ioctl05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl06.sh index 1795cfd31..4f5553285 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl06 ioctl06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl06 ioctl06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl07.sh index b7bdce50d..20cca2515 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl07 ioctl07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl07 ioctl07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl08.sh index dfb2832b5..9f49bb2c5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl08 ioctl08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl08 ioctl08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl09.sh index 9fac83df9..d9fcf4d7f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl09 ioctl09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl09 ioctl09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone01.sh new file mode 100644 index 000000000..0922f4f20 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls ioctl_ficlone01 ioctl_ficlone01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s ioctl_ficlone01 ioctl_ficlone01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls ioctl_ficlone01 ioctl_ficlone01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone02.sh new file mode 100644 index 000000000..428ca54be --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls ioctl_ficlone02 ioctl_ficlone02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s ioctl_ficlone02 ioctl_ficlone02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls ioctl_ficlone02 ioctl_ficlone02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone03.sh new file mode 100644 index 000000000..551542302 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlone03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls ioctl_ficlone03 ioctl_ficlone03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s ioctl_ficlone03 ioctl_ficlone03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls ioctl_ficlone03 ioctl_ficlone03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlonerange01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlonerange01.sh new file mode 100644 index 000000000..93eb2dc69 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlonerange01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls ioctl_ficlonerange01 ioctl_ficlonerange01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s ioctl_ficlonerange01 ioctl_ficlonerange01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls ioctl_ficlonerange01 ioctl_ficlonerange01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlonerange02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlonerange02.sh new file mode 100644 index 000000000..1c5b66a1c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ficlonerange02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls ioctl_ficlonerange02 ioctl_ficlonerange02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s ioctl_ficlonerange02 ioctl_ficlonerange02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls ioctl_ficlonerange02 ioctl_ficlonerange02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop01.sh index 61b6f95aa..21af0b68f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_loop01 ioctl_loop01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_loop01 ioctl_loop01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop02.sh index 8cd458b9c..9e8bda2db 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_loop02 ioctl_loop02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_loop02 ioctl_loop02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop03.sh index d47f06bfe..a047f4659 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_loop03 ioctl_loop03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_loop03 ioctl_loop03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop04.sh index b2dc314ca..ccb634774 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_loop04 ioctl_loop04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_loop04 ioctl_loop04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop05.sh index 9c7fb715a..8ad191415 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_loop05 ioctl_loop05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_loop05 ioctl_loop05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop06.sh index 656879928..fae231dd9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_loop06 ioctl_loop06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_loop06 ioctl_loop06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop07.sh index f524687cf..89a8622fd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_loop07 ioctl_loop07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_loop07 ioctl_loop07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns01.sh index 38c5b030e..0abf78f22 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_ns01 ioctl_ns01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_ns01 ioctl_ns01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns02.sh index ed763c1e2..c9bd41c22 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_ns02 ioctl_ns02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_ns02 ioctl_ns02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns03.sh index 740e21f32..7302cad2a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_ns03 ioctl_ns03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_ns03 ioctl_ns03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns04.sh index 1154360bc..7f9a1d24e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_ns04 ioctl_ns04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_ns04 ioctl_ns04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns05.sh index f41adeacc..6dc19796f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_ns05 ioctl_ns05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_ns05 ioctl_ns05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns06.sh index 394ab6a90..8e1d69474 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_ns06 ioctl_ns06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_ns06 ioctl_ns06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns07.sh index ed083bd87..0a736f388 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_ns07 ioctl_ns07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_ns07 ioctl_ns07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_sg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_sg01.sh index e450fa326..9208afa6c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_sg01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_sg01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioctl_sg01 ioctl_sg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioctl_sg01 ioctl_sg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm01.sh index d2ad8b9a5..522a144c3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioperm01 ioperm01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioperm01 ioperm01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm02.sh index 76bf9c1dc..86b334efd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioperm02 ioperm02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioperm02 ioperm02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl01.sh index 753ffb6b8..7c3b09b5c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s iopl01 iopl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls iopl01 iopl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl02.sh index e0a18c737..939a45b21 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s iopl02 iopl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls iopl02 iopl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_get01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_get01.sh index bff206c1b..85aa31adf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_get01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_get01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioprio_get01 ioprio_get01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioprio_get01 ioprio_get01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set01.sh index 053c20cf9..3c3474d79 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioprio_set01 ioprio_set01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioprio_set01 ioprio_set01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set02.sh index b29b26d17..a1ba7bb2c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioprio_set02 ioprio_set02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioprio_set02 ioprio_set02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set03.sh index 58236c80e..749db1109 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ioprio_set03 ioprio_set03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ioprio_set03 ioprio_set03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp01.sh index 3b9e65f40..9d97a9437 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kcmp01 kcmp01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kcmp01 kcmp01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp02.sh index 889695dc4..ec3cb9420 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kcmp02 kcmp02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kcmp02 kcmp02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp03.sh index f17f821f8..416e15128 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kcmp03 kcmp03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kcmp03 kcmp03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl01.sh index 5ccea4ace..d2998fedd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s keyctl01 keyctl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls keyctl01 keyctl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl02.sh index 6843739db..54ec91cef 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s keyctl02 keyctl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls keyctl02 keyctl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl03.sh index 3572016e4..8c5a603e3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s keyctl03 keyctl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls keyctl03 keyctl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl04.sh index f86ae14e4..1831277cb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s keyctl04 keyctl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls keyctl04 keyctl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl05.sh index ed7181a8e..f097658d2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s keyctl05 keyctl05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls keyctl05 keyctl05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl06.sh index af6809932..c1e81966a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s keyctl06 keyctl06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls keyctl06 keyctl06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl07.sh index b35b07d72..a965a17c3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s keyctl07 keyctl07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls keyctl07 keyctl07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl08.sh index 9c3c6004c..53aceb989 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s keyctl08 keyctl08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls keyctl08 keyctl08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl09.sh index b899a61bf..d2555e9fb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s keyctl09 keyctl09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls keyctl09 keyctl09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill02.sh index 8c506c8e8..a4f7e4192 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill02 kill02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill02 kill02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill03.sh index 02dc0a498..b24ba9416 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill03 kill03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill03 kill03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill05.sh index a6f1c7786..65644843a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill05 kill05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill05 kill05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill06.sh index 6c0d725b0..ed0b909a8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill06 kill06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill06 kill06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill07.sh index c6c9e5382..3f7dff268 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill07 kill07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill07 kill07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill08.sh index f53c0ed07..37b20212d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill08 kill08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill08 kill08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill09.sh index 58ef470cf..132393405 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill09 kill09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill09 kill09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill10.sh index 7775d63c1..09ecc5729 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill10 kill10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill10 kill10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill11.sh index fd2f6ba71..99f462495 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill11 kill11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill11 kill11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill12.sh index 4cfa51854..bd799a606 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill12 kill12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill12 kill12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill13.sh index 0a2ad18cd..5fd2ea705 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill13.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s kill13 kill13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls kill13 kill13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock01.sh new file mode 100644 index 000000000..b901ca7c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls landlock01 landlock01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s landlock01 landlock01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls landlock01 landlock01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock02.sh new file mode 100644 index 000000000..5f9e75130 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls landlock02 landlock02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s landlock02 landlock02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls landlock02 landlock02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock03.sh new file mode 100644 index 000000000..cecb2ad4b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls landlock03 landlock03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s landlock03 landlock03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls landlock03 landlock03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock04.sh new file mode 100644 index 000000000..67a09f745 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls landlock04 landlock04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s landlock04 landlock04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls landlock04 landlock04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock05.sh new file mode 100644 index 000000000..df07efcbe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls landlock05 landlock05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s landlock05 landlock05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls landlock05 landlock05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock06.sh new file mode 100644 index 000000000..6e951011b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_landlock06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls landlock06 landlock06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s landlock06 landlock06 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls landlock06 landlock06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01.sh index 6817b6361..9d1a33722 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lchown01 lchown01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lchown01 lchown01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01_16.sh index 7d00f1a91..b704c04cf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lchown01_16 lchown01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lchown01_16 lchown01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02.sh index 407972081..4f88344b1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lchown02 lchown02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lchown02 lchown02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02_16.sh index 3509ade85..72b543935 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lchown02_16 lchown02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lchown02_16 lchown02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03.sh index 19fa57bc1..bae094f01 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lchown03 lchown03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lchown03 lchown03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03_16.sh index daa767b34..4d33f0213 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lchown03_16 lchown03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lchown03_16 lchown03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_leapsec01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_leapsec01.sh index c87b438c3..c01f0f804 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_leapsec01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_leapsec01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s leapsec01 leapsec01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls leapsec01 leapsec01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr01.sh index c1b550650..c31cba7e4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lgetxattr01 lgetxattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lgetxattr01 lgetxattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr02.sh index 08adb8226..42aff39d4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lgetxattr02 lgetxattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lgetxattr02 lgetxattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link01.sh index 9ed27b65f..5e3567c20 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s link01 symlink01 -T link01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls link01 symlink01 -T link01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link02.sh index 0638d54ed..03d1ef572 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s link02 link02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls link02 link02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link04.sh index 44c0f6503..725048334 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s link04 link04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls link04 link04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link05.sh index 12b2e54e4..5e84446b5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s link05 link05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls link05 link05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link08.sh index f55f2adbd..d6dcfa794 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s link08 link08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls link08 link08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat01.sh index 0bc5e6576..66dd84df1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s linkat01 linkat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls linkat01 linkat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat02.sh index ec798d113..eb8d7a692 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s linkat02 linkat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls linkat02 linkat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listen01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listen01.sh index a67b18871..5171b9a9f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listen01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listen01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s listen01 listen01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls listen01 listen01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr01.sh index 5b0bf9edd..ab5edca6f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s listxattr01 listxattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls listxattr01 listxattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr02.sh index 4a20d2276..47e04dee5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s listxattr02 listxattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls listxattr02 listxattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr03.sh index 3bc7ca2da..904a9bbc1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s listxattr03 listxattr03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls listxattr03 listxattr03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr01.sh index 225b7cb68..aa9e524ef 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s llistxattr01 llistxattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls llistxattr01 llistxattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr02.sh index a5027b165..68df12549 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s llistxattr02 llistxattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls llistxattr02 llistxattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr03.sh index bf82fc88e..16176a8b9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s llistxattr03 llistxattr03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls llistxattr03 llistxattr03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek01.sh index 23c571552..e534a73d2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s llseek01 llseek01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls llseek01 llseek01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek02.sh index 71a585576..4af3936bd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s llseek02 llseek02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls llseek02 llseek02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek03.sh index c1ebd21e2..bbdfc3ee5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s llseek03 llseek03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls llseek03 llseek03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lremovexattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lremovexattr01.sh index de418d797..b62477967 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lremovexattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lremovexattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lremovexattr01 lremovexattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lremovexattr01 lremovexattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek01.sh index 6049f6472..bb77d2f08 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lseek01 lseek01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lseek01 lseek01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek02.sh index 3be2c46b9..2e088dd81 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lseek02 lseek02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lseek02 lseek02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek07.sh index 14979a5b7..1025efe7d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lseek07 lseek07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lseek07 lseek07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek11.sh index bfb513913..4832cd5b1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lseek11 lseek11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lseek11 lseek11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01.sh index 1c410c9de..4ff2c572d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lstat01 lstat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lstat01 lstat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01_64.sh index e137bf2ea..4a0ea857f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lstat01_64 lstat01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lstat01_64 lstat01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02.sh index 450df5d7d..eb94f13bc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lstat02 lstat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lstat02 lstat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02_64.sh index bfd3e6a21..e3e386d0b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s lstat02_64 lstat02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls lstat02_64 lstat02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat03.sh new file mode 100644 index 000000000..041ae1be1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls lstat03 lstat03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s lstat03 lstat03 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls lstat03 lstat03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat03_64.sh new file mode 100644 index 000000000..f3e897347 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat03_64.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls lstat03_64 lstat03_64 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s lstat03_64 lstat03_64 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls lstat03_64 lstat03_64 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise01.sh index 563d61e2a..cd20c924c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise01 madvise01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise01 madvise01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise02.sh index 367ed52ef..e332a4710 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise02 madvise02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise02 madvise02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise03.sh index 53337eb92..f98081953 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise03 madvise03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise03 madvise03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise05.sh index 0d41c7e1d..7290607d8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise05 madvise05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise05 madvise05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise06.sh index 5256db2e6..6e61cb771 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise06 madvise06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise06 madvise06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise07.sh index 9dc7154e2..3fbcea41a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise07 madvise07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise07 madvise07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise08.sh index 167ab686d..19733cd9b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise08 madvise08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise08 madvise08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise09.sh index 73805f594..2afa8bedd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise09 madvise09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise09 madvise09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise10.sh index a7442b122..ecef5d065 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise10 madvise10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise10 madvise10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise11.sh index afa13b1c3..3b8beccf9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s madvise11 madvise11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls madvise11 madvise11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo02.sh index 5fdc1594b..76ba87f7c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mallinfo02 mallinfo02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mallinfo02 mallinfo02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo2_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo2_01.sh index 96d2ebd56..0c835d416 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo2_01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo2_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mallinfo2_01 mallinfo2_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mallinfo2_01 mallinfo2_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallopt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallopt01.sh index 60f3dccb0..62ea848d9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallopt01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallopt01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mallopt01 mallopt01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mallopt01 mallopt01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind01.sh index 51584de63..816cda47f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mbind01 mbind01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mbind01 mbind01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind02.sh index efdf2f7ca..03d5bd1a7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mbind02 mbind02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mbind02 mbind02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind03.sh index 9333384ba..3b71332cf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mbind03 mbind03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mbind03 mbind03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind04.sh index d79b5117e..4887a45bb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mbind04 mbind04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mbind04 mbind04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_membarrier01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_membarrier01.sh index db7544fbe..5b5e3be49 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_membarrier01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_membarrier01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s membarrier01 membarrier01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls membarrier01 membarrier01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcmp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcmp01.sh index 4bfd9e68b..86652b320 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcmp01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcmp01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s memcmp01 memcmp01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls memcmp01 memcmp01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcpy01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcpy01.sh index 24eae7278..cc65ecae5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcpy01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcpy01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s memcpy01 memcpy01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls memcpy01 memcpy01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create01.sh index 1981f28f8..fc6afe18e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s memfd_create01 memfd_create01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls memfd_create01 memfd_create01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create02.sh index b804fdac2..f58424969 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s memfd_create02 memfd_create02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls memfd_create02 memfd_create02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create03.sh index 92a7e6c04..7cbdcdce0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s memfd_create03 memfd_create03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls memfd_create03 memfd_create03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create04.sh index 04d7243f3..e032da6d0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s memfd_create04 memfd_create04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls memfd_create04 memfd_create04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memset01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memset01.sh index 4623de47f..f0662bf8c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memset01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memset01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s memset01 memset01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls memset01 memset01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages01.sh index 6fa67d27d..1f5772ab2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s migrate_pages01 migrate_pages01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls migrate_pages01 migrate_pages01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages02.sh index 58207f156..cafd10c12 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s migrate_pages02 migrate_pages02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls migrate_pages02 migrate_pages02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages03.sh index ec97ac7bb..acca7a5e5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s migrate_pages03 migrate_pages03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls migrate_pages03 migrate_pages03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore01.sh index 0a4514634..13951bf3e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mincore01 mincore01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mincore01 mincore01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore02.sh index c0058371f..4f77738f5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mincore02 mincore02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mincore02 mincore02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore03.sh index b050e5b88..311b9f4d2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mincore03 mincore03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mincore03 mincore03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore04.sh index 846f44e6d..4d389047d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mincore04 mincore04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mincore04 mincore04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir02.sh index 134cc115a..c21b335d7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mkdir02 mkdir02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mkdir02 mkdir02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir03.sh index a65d99b32..4a469f20d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mkdir03 mkdir03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mkdir03 mkdir03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir04.sh index fa0e27194..e9a6985c0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mkdir04 mkdir04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mkdir04 mkdir04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir05.sh index 132e24b6e..12db8fdd9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mkdir05 mkdir05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mkdir05 mkdir05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir09.sh index 9949f98c5..42a01a51f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mkdir09 mkdir09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mkdir09 mkdir09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat01.sh index 088701811..0db841594 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mkdirat01 mkdirat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mkdirat01 mkdirat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat02.sh index 73f157c53..889c2c4f3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mkdirat02 mkdirat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mkdirat02 mkdirat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod01.sh index 80f1d508b..da340a341 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknod01 mknod01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknod01 mknod01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod02.sh index 75aa4b7c5..8ad0cd7fd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknod02 mknod02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknod02 mknod02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod03.sh index 4ccc573f2..70ce7f841 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknod03 mknod03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknod03 mknod03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod04.sh index b436a155b..15a493c9d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknod04 mknod04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknod04 mknod04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod05.sh index 8a1580335..b21b2d7e5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknod05 mknod05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknod05 mknod05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod06.sh index 01ff935e2..362495be6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknod06 mknod06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknod06 mknod06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod07.sh index 8c100505a..52198b508 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknod07 mknod07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknod07 mknod07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod08.sh index 2edf29b7b..bf7acfed7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknod08 mknod08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknod08 mknod08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod09.sh index 4a0104086..c954d9028 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknod09 mknod09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknod09 mknod09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat01.sh index 4f874847a..e0d322fff 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknodat01 mknodat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknodat01 mknodat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat02.sh index 74c8a9dbd..d2980ebbf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mknodat02 mknodat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mknodat02 mknodat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock01.sh index 1a0859d03..8ce9ee600 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlock01 mlock01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlock01 mlock01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock02.sh index 4fd32e043..adf423277 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlock02 mlock02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlock02 mlock02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock03.sh index 3a35b0693..713192249 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlock03 mlock03 -i 20 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlock03 mlock03 -i 20 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock04.sh index c1380d4c5..eec58ce5d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlock04 mlock04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlock04 mlock04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock05.sh new file mode 100644 index 000000000..82eef2b27 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls mlock05 mlock05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s mlock05 mlock05 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls mlock05 mlock05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock201.sh index dfe84cf08..cb2245f01 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock201.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock201.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlock201 mlock201 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlock201 mlock201 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock202.sh index a3cf50053..9e6a50d58 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock202.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock202.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlock202 mlock202 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlock202 mlock202 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock203.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock203.sh index 75586954c..800fff315 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock203.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock203.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlock203 mlock203 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlock203 mlock203 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall01.sh index a3ddfb6a6..f7419b159 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlockall01 mlockall01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlockall01 mlockall01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall02.sh index 4dd5049d1..88ce8e338 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlockall02 mlockall02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlockall02 mlockall02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall03.sh index 324dafc14..a22483a38 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mlockall03 mlockall03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mlockall03 mlockall03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap01.sh index 85df4bbe7..3c8003d7c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap01 mmap01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap01 mmap01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap02.sh index 4665b8387..9febfe366 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap02 mmap02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap02 mmap02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap03.sh index c8cbc64af..2ed9c8e4e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap03 mmap03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap03 mmap03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap04.sh index fd6958d66..441c547f1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap04 mmap04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap04 mmap04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap05.sh index 69d28f3c9..39db6845a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap05 mmap05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap05 mmap05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap06.sh index 96e88fa8e..9d47b55e0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap06 mmap06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap06 mmap06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap08.sh index a661b4199..9bd82a128 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap08 mmap08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap08 mmap08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap09.sh index 47f7308cd..280781d10 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap09 mmap09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap09 mmap09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap12.sh index 7beafea05..422a79bcb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap12 mmap12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap12 mmap12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap13.sh index 89905dfbf..297ed2b84 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap13.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap13 mmap13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap13 mmap13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap14.sh index 3a9afa0a3..d9109fbb4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap14.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap14 mmap14 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap14 mmap14 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap15.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap15.sh index 7aeeb1f7e..2938da679 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap15.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap15.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap15 mmap15 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap15 mmap15 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap16.sh index 4d22d07d4..9d7b35532 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap16 mmap16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap16 mmap16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap17.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap17.sh index 9cdabacf9..c7558ca95 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap17.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap17.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap17 mmap17 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap17 mmap17 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap18.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap18.sh index e9eae9369..1a1cd1c36 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap18.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap18.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap18 mmap18 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap18 mmap18 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap19.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap19.sh index 064793b51..4bbb1681b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap19.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap19.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap19 mmap19 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap19 mmap19 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap20.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap20.sh index 605a9ef5b..57d748b6e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap20.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap20.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mmap20 mmap20 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mmap20 mmap20 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt01.sh index 1964bd219..f4a9e6353 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s modify_ldt01 modify_ldt01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls modify_ldt01 modify_ldt01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt02.sh index 7ee1ac461..426fe6b34 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s modify_ldt02 modify_ldt02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls modify_ldt02 modify_ldt02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt03.sh index 1f606e05c..95295a540 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s modify_ldt03 modify_ldt03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls modify_ldt03 modify_ldt03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount01.sh index 1ada30ffb..3d7827fc4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mount01 mount01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mount01 mount01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount02.sh index ce809fbf7..17a33b1fc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mount02 mount02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mount02 mount02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount03.sh index bc97eb3f0..2177c73b6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mount03 mount03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mount03 mount03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount04.sh index ff38395a3..362b401ee 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mount04 mount04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mount04 mount04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount05.sh index 58c54f68c..3e646ea47 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mount05 mount05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mount05 mount05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount06.sh index 127d471be..91275de14 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mount06 mount06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mount06 mount06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount07.sh index 79027a512..2a9ae584d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mount07 mount07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mount07 mount07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount_setattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount_setattr01.sh index 0bc0205d2..0370b10dc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount_setattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount_setattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mount_setattr01 mount_setattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mount_setattr01 mount_setattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount01.sh index 77b2c01e5..f55749fdb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_mount01 move_mount01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_mount01 move_mount01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount02.sh index 745678fe8..ddbdf7aac 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_mount02 move_mount02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_mount02 move_mount02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages01.sh index 0a1038078..31ed76dfa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages01 move_pages01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages01 move_pages01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages02.sh index 6d332d556..2cde7594b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages02 move_pages02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages02 move_pages02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages03.sh index 230cee38f..bb4841071 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages03 move_pages03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages03 move_pages03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages04.sh index 79706f14e..2acad9e1b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages04 move_pages04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages04 move_pages04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages05.sh index 79c10688f..b6a5c941c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages05 move_pages05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages05 move_pages05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages06.sh index ad7efbef2..6b1e5be3e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages06 move_pages06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages06 move_pages06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages07.sh index 4a792a4f4..b34ee37b7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages07 move_pages07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages07 move_pages07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages09.sh index f7c684a4a..d72b58cb5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages09 move_pages09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages09 move_pages09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages10.sh index ab08346fe..a139da8e8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages10 move_pages10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages10 move_pages10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages11.sh index 40ae7d874..eec2147b3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages11 move_pages11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages11 move_pages11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages12.sh index eba197b10..062feb804 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s move_pages12 move_pages12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls move_pages12 move_pages12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect01.sh index 5e0da4fde..1b94e28b1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mprotect01 mprotect01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mprotect01 mprotect01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect02.sh index baffa3a52..0c0f101ea 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mprotect02 mprotect02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mprotect02 mprotect02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect03.sh index f0d083bdc..8929c82ce 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mprotect03 mprotect03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mprotect03 mprotect03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect04.sh index f4c162afe..278b1818d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mprotect04 mprotect04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mprotect04 mprotect04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect05.sh index f2aa40fd3..bf310aee5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mprotect05 mprotect05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mprotect05 mprotect05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify01.sh index 3ed1204a7..d91759ea7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mq_notify01 mq_notify01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mq_notify01 mq_notify01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify02.sh index 2226c7322..3ff2ba2d9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mq_notify02 mq_notify02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mq_notify02 mq_notify02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify03.sh index edf6e2891..2e7a63af5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mq_notify03 mq_notify03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mq_notify03 mq_notify03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_open01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_open01.sh index 6ae49f348..a3b66d8f1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_open01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_open01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mq_open01 mq_open01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mq_open01 mq_open01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedreceive01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedreceive01.sh index 23ce98baf..6230cd1ae 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedreceive01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedreceive01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mq_timedreceive01 mq_timedreceive01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mq_timedreceive01 mq_timedreceive01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedsend01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedsend01.sh index d2830ec1b..efe69a6d2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedsend01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedsend01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mq_timedsend01 mq_timedsend01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mq_timedsend01 mq_timedsend01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_unlink01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_unlink01.sh index 5e9ea1f3c..9454239b6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_unlink01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_unlink01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mq_unlink01 mq_unlink01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mq_unlink01 mq_unlink01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap01.sh index 23c547a9b..068815cc2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mremap01 mremap01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mremap01 mremap01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap02.sh index 0be4f241c..bc5c36d41 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mremap02 mremap02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mremap02 mremap02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap03.sh index 85a0f0e6f..26b563952 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mremap03 mremap03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mremap03 mremap03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap04.sh index be24a7313..df7334759 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mremap04 mremap04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mremap04 mremap04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap05.sh index d4aa93e60..add18a7c4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mremap05 mremap05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mremap05 mremap05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap06.sh index a7b6dafb6..84a090411 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s mremap06 mremap06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls mremap06 mremap06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mseal01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mseal01.sh new file mode 100644 index 000000000..7d9668f8e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mseal01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls mseal01 mseal01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s mseal01 mseal01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls mseal01 mseal01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl01.sh index 1b9255ef8..bed47534e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgctl01 msgctl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgctl01 msgctl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl02.sh index cc9f0b38f..7f50c58d4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgctl02 msgctl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgctl02 msgctl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl03.sh index d61962512..3a1d479c5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgctl03 msgctl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgctl03 msgctl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl04.sh index 69e268e1b..93e812346 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgctl04 msgctl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgctl04 msgctl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl05.sh index faaa2ac47..c79f57e37 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgctl05 msgctl05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgctl05 msgctl05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl06.sh index cd5076ffd..4fff28869 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgctl06 msgctl06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgctl06 msgctl06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl12.sh index 152e172e2..6b9406c5b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgctl12 msgctl12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgctl12 msgctl12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget01.sh index ac353b23d..f91095ad1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgget01 msgget01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgget01 msgget01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget02.sh index 0ece6625c..4a9e252e5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgget02 msgget02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgget02 msgget02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget03.sh index fdcbb9129..35ea79657 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgget03 msgget03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgget03 msgget03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget04.sh index b390d7771..f1b9cd8a8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgget04 msgget04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgget04 msgget04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget05.sh index 2ef90d54f..2918261e3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgget05 msgget05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgget05 msgget05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv01.sh index 367db69ca..b11e31117 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgrcv01 msgrcv01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgrcv01 msgrcv01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv02.sh index 698bf7aea..44c95b529 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgrcv02 msgrcv02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgrcv02 msgrcv02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv03.sh index 0a9db5076..4fe59ee47 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgrcv03 msgrcv03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgrcv03 msgrcv03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv05.sh index ece49ddbc..e607baea2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgrcv05 msgrcv05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgrcv05 msgrcv05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv06.sh index 7c4641853..ea5afaad4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgrcv06 msgrcv06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgrcv06 msgrcv06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv07.sh index fc563de13..d5088e753 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgrcv07 msgrcv07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgrcv07 msgrcv07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv08.sh index 556c84b74..7e0241767 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgrcv08 msgrcv08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgrcv08 msgrcv08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd01.sh index 79d7a62e0..e1c98d6a2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgsnd01 msgsnd01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgsnd01 msgsnd01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd02.sh index 16e07f0ad..cfd4993bc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgsnd02 msgsnd02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgsnd02 msgsnd02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd05.sh index d66106b96..fce461903 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgsnd05 msgsnd05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgsnd05 msgsnd05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd06.sh index 1160c6f45..6e2a4f24e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgsnd06 msgsnd06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgsnd06 msgsnd06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress01.sh index f3545d892..0d8ef7a0c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msgstress01 msgstress01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msgstress01 msgstress01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync01.sh index 329d1db24..b8a773722 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msync01 msync01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msync01 msync01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync02.sh index a3fce8fea..b430ed336 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msync02 msync02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msync02 msync02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync03.sh index 1c9e36dae..ddf861cce 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msync03 msync03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msync03 msync03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync04.sh index 2e78af178..d7b075b32 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s msync04 msync04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls msync04 msync04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock01.sh index e657e39da..84d0a9972 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s munlock01 munlock01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls munlock01 munlock01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock02.sh index 91fd1b6f8..7d8a3f275 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s munlock02 munlock02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls munlock02 munlock02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlockall01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlockall01.sh index 93e9b275b..832983b45 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlockall01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlockall01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s munlockall01 munlockall01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls munlockall01 munlockall01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap01.sh index 94bb168f9..e1d7b66c2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s munmap01 munmap01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls munmap01 munmap01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap02.sh index 0690f40f1..f7c06edc4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s munmap02 munmap02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls munmap02 munmap02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap03.sh index 1a48f3255..c92129673 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s munmap03 munmap03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls munmap03 munmap03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at01.sh index a220d70cd..718090fe2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s name_to_handle_at01 name_to_handle_at01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls name_to_handle_at01 name_to_handle_at01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at02.sh index ed8fc0176..de6082f94 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s name_to_handle_at02 name_to_handle_at02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls name_to_handle_at02 name_to_handle_at02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep01.sh index 76dde7240..967f72559 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nanosleep01 nanosleep01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nanosleep01 nanosleep01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep02.sh index 20e1e2ab4..c948df500 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nanosleep02 nanosleep02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nanosleep02 nanosleep02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep04.sh index 0aeb039f8..fcd48d931 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nanosleep04 nanosleep04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nanosleep04 nanosleep04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_newuname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_newuname01.sh index 31e387762..0900195f8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_newuname01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_newuname01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s newuname01 newuname01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls newuname01 newuname01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw01.sh index 0e08b62e1..9cc1a52bb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nftw01 nftw01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nftw01 nftw01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw6401.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw6401.sh index b6e785d67..f68a2967a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw6401.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw6401.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nftw6401 nftw6401 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nftw6401 nftw6401 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice01.sh index 8e60636c3..974eb81a5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nice01 nice01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nice01 nice01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice02.sh index 64d443351..99ecfd394 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nice02 nice02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nice02 nice02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice03.sh index 3e4afe7bf..7c0b9c198 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nice03 nice03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nice03 nice03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice04.sh index 9c5777f03..f10448af5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nice04 nice04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nice04 nice04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice05.sh index 79fa3b7f3..931ef3991 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s nice05 nice05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls nice05 nice05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open01.sh index e8995a10b..a36057f0c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open01 open01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open01 open01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open02.sh index d405b57e9..c20c23d34 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open02 open02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open02 open02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open03.sh index d0e055f1f..bbc2f83ad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open03 open03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open03 open03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open04.sh index 60badcfee..9ab953ff7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open04 open04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open04 open04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open06.sh index d7c68d3c2..6d8df5256 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open06 open06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open06 open06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open07.sh index 4045e2352..542c8982f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open07 open07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open07 open07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open08.sh index a6355d664..e82a38970 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open08 open08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open08 open08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open09.sh index 3ff046b9c..04c2c71cf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open09 open09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open09 open09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open10.sh index 73bb6e804..9bdccda83 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open10 open10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open10 open10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open11.sh index a1d1ff604..d73ca78f9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open11 open11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open11 open11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open12.sh index e6f6cbd5d..f4ddc3e6a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open12 open12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open12 open12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open13.sh index 022705543..44feb61e3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open13.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open13 open13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open13 open13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open14.sh index 426fa3e69..accc3d826 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open14.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open14 open14 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open14 open14 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open15.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open15.sh new file mode 100644 index 000000000..a2d18b831 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls open15 open15 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s open15 open15 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls open15 open15 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at01.sh index 4e7c069a0..68e29ca55 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open_by_handle_at01 open_by_handle_at01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open_by_handle_at01 open_by_handle_at01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at02.sh index 19078f3c8..401847cd2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open_by_handle_at02 open_by_handle_at02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open_by_handle_at02 open_by_handle_at02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree01.sh index 7a85b1bb9..b9e9d5542 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open_tree01 open_tree01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open_tree01 open_tree01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree02.sh index 8dc2b6e34..8bf787bb6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s open_tree02 open_tree02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls open_tree02 open_tree02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat01.sh index 9134bb074..e147f65c5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s openat01 openat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls openat01 openat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat02.sh index 61e69694a..71bd2dfc5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s openat02 openat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls openat02 openat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat03.sh index 6fe7413ed..886273dc8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s openat03 openat03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls openat03 openat03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat04.sh index 2fee39132..986a94d21 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s openat04 openat04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls openat04 openat04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat201.sh index 09b99bb56..9fc1f539d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat201.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat201.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s openat201 openat201 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls openat201 openat201 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat202.sh index 853f9d761..719dbbd58 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat202.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat202.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s openat202 openat202 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls openat202 openat202 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat203.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat203.sh index 0c3d2043d..e8ce3cd92 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat203.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat203.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s openat203 openat203 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls openat203 openat203 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf01.sh index 6f570ec54..426b4267b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pathconf01 pathconf01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pathconf01 pathconf01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf02.sh index 80811e358..33bebbfb3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pathconf02 pathconf02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pathconf02 pathconf02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause01.sh index 446376982..9e6bd1c1e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pause01 pause01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pause01 pause01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause02.sh index 9081e3b8e..3eabf31a2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pause02 pause02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pause02 pause02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause03.sh index d4bde90c1..8c3fded8f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pause03 pause03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pause03 pause03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open01.sh index 96e8e933a..40100a064 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s perf_event_open01 perf_event_open01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls perf_event_open01 perf_event_open01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open02.sh index 0befd9b3a..4f188b3f7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s perf_event_open02 perf_event_open02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls perf_event_open02 perf_event_open02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open03.sh index 0aef733b8..b91ccbf8d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s perf_event_open03 perf_event_open03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls perf_event_open03 perf_event_open03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality01.sh index 4b8a8b731..56f79b310 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s personality01 personality01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls personality01 personality01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality02.sh index 364bdc712..7014631eb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s personality02 personality02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls personality02 personality02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd01.sh index 1e65b0e9c..b4af7862d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pidfd_getfd01 pidfd_getfd01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pidfd_getfd01 pidfd_getfd01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd02.sh index 1cfdc9f8c..15863d18d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pidfd_getfd02 pidfd_getfd02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pidfd_getfd02 pidfd_getfd02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open01.sh index 10a6df075..9fc18d958 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pidfd_open01 pidfd_open01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pidfd_open01 pidfd_open01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open02.sh index aa0bd9136..aacb35b26 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pidfd_open02 pidfd_open02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pidfd_open02 pidfd_open02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open03.sh index 88ef94767..ec8dbd418 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pidfd_open03 pidfd_open03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pidfd_open03 pidfd_open03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open04.sh index fa948a461..3c6482e83 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pidfd_open04 pidfd_open04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pidfd_open04 pidfd_open04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal01.sh index 560d1d92b..c47f5d560 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pidfd_send_signal01 pidfd_send_signal01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pidfd_send_signal01 pidfd_send_signal01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal02.sh index 62951e267..9ce027ebc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pidfd_send_signal02 pidfd_send_signal02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pidfd_send_signal02 pidfd_send_signal02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal03.sh index bb3ac53c9..d945b54b1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pidfd_send_signal03 pidfd_send_signal03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pidfd_send_signal03 pidfd_send_signal03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe01.sh index fc1abbb8e..10704fb81 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe01 pipe01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe01 pipe01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe02.sh index ede255be3..649e34c89 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe02 pipe02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe02 pipe02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe03.sh index 379292347..06919cff0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe03 pipe03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe03 pipe03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe04.sh index 0a74f798b..87cf9c35a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe04 pipe04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe04 pipe04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe05.sh index a5bd2500a..c6a7ffe56 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe05 pipe05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe05 pipe05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe06.sh index 12c4ad60e..89343aeee 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe06 pipe06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe06 pipe06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe07.sh index 12a0addad..62f5c03ea 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe07 pipe07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe07 pipe07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe08.sh index a1f943d86..e4401a4f3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe08 pipe08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe08 pipe08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe09.sh index e27052a9b..f911f64f5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe09 pipe09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe09 pipe09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe10.sh index 21f9c76a7..2dbb7321e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe10 pipe10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe10 pipe10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe11.sh index 83a612b12..2a10c1579 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe11 pipe11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe11 pipe11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe12.sh index 60346d3c4..543f16878 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe12 pipe12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe12 pipe12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe13.sh index 7d279acd0..a03e7694f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe13.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe13 pipe13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe13 pipe13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe14.sh index d980f186e..409752dcc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe14.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe14 pipe14 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe14 pipe14 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe15.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe15.sh index 2de1d996b..b76e5499a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe15.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe15.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe15 pipe15 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe15 pipe15 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_01.sh index ecadef240..3616cb5c9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe2_01 pipe2_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe2_01 pipe2_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_02.sh index 1ec8d473e..fa213affb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe2_02 pipe2_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe2_02 pipe2_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_04.sh index 2d1f95708..cc73e2f5c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pipe2_04 pipe2_04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pipe2_04 pipe2_04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pivot_root01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pivot_root01.sh index e7389eb5e..0df9fe351 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pivot_root01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pivot_root01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pivot_root01 pivot_root01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pivot_root01 pivot_root01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pkey01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pkey01.sh index d48802f26..8d659af84 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pkey01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pkey01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pkey01 pkey01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pkey01 pkey01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll01.sh index 47085d007..69d9e7926 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s poll01 poll01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls poll01 poll01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll02.sh index 75488af17..044656a0f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s poll02 poll02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls poll02 poll02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01.sh index 9c78658f2..ebd308969 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s posix_fadvise01 posix_fadvise01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls posix_fadvise01 posix_fadvise01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01_64.sh index e31b3de76..d5d87ed51 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s posix_fadvise01_64 posix_fadvise01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls posix_fadvise01_64 posix_fadvise01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02.sh index 14d687dd5..13043f373 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s posix_fadvise02 posix_fadvise02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls posix_fadvise02 posix_fadvise02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02_64.sh index fdeaf0382..ab7ccd2eb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s posix_fadvise02_64 posix_fadvise02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls posix_fadvise02_64 posix_fadvise02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03.sh index 2e43dc6af..b6b84f89b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s posix_fadvise03 posix_fadvise03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls posix_fadvise03 posix_fadvise03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03_64.sh index 5dd72bfa6..51748d140 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s posix_fadvise03_64 posix_fadvise03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls posix_fadvise03_64 posix_fadvise03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04.sh index c858ffc5c..fbeabc856 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s posix_fadvise04 posix_fadvise04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls posix_fadvise04 posix_fadvise04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04_64.sh index 1ab0f56d1..86512ab0c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s posix_fadvise04_64 posix_fadvise04_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls posix_fadvise04_64 posix_fadvise04_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ppoll01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ppoll01.sh index 2c0d08d9c..d033da8ed 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ppoll01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ppoll01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ppoll01 ppoll01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ppoll01 ppoll01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl01.sh index c74ae2f59..e7fad774c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prctl01 prctl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prctl01 prctl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl02.sh index 274a3a9b1..af0789d3a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prctl02 prctl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prctl02 prctl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl03.sh index a00d8e961..4eeb543ec 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prctl03 prctl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prctl03 prctl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl05.sh index 5019fa9f5..451112d14 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prctl05 prctl05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prctl05 prctl05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl06.sh index 2fe098b49..dd32245c2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prctl06 prctl06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prctl06 prctl06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl07.sh index b5ecab444..20a025f33 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prctl07 prctl07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prctl07 prctl07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl08.sh index d134f31a0..9a4bc4e6d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prctl08 prctl08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prctl08 prctl08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl09.sh index 07be66f70..8aa8f8f7c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prctl09 prctl09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prctl09 prctl09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl10.sh index ead845de9..ba5fd0be5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prctl10 prctl10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prctl10 prctl10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01.sh index e7e99243e..7def2759a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pread01 pread01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pread01 pread01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01_64.sh index 88b7da277..396beb401 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pread01_64 pread01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pread01_64 pread01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02.sh index b1fb20cb6..9affbb89f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pread02 pread02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pread02 pread02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02_64.sh index 8672a6478..2c43e97f4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pread02_64 pread02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pread02_64 pread02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01.sh index 245acd565..f0a4176c1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv01 preadv01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv01 preadv01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01_64.sh index da6532aec..cc2c5476d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv01_64 preadv01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv01_64 preadv01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02.sh index aedd2e6dd..edf3ddb2e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv02 preadv02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv02 preadv02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02_64.sh index 3ef3a66f6..146d45bb2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv02_64 preadv02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv02_64 preadv02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03.sh index f6e5c3c56..bd81d5cf2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv03 preadv03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv03 preadv03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03_64.sh index 0d15ac542..3fd48e72a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv03_64 preadv03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv03_64 preadv03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201.sh index fc9109a90..69ac52cf6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv201 preadv201 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv201 preadv201 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201_64.sh index d2eb3c4cd..e734668d7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv201_64 preadv201_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv201_64 preadv201_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202.sh index 3acb62adc..f3402cacf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv202 preadv202 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv202 preadv202 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202_64.sh index 3c9d761da..8850080e0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv202_64 preadv202_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv202_64 preadv202_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203.sh index 2ea8c1349..6bbe6b3aa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv203 preadv203 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv203 preadv203 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203_64.sh index 66696138c..da232a16a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s preadv203_64 preadv203_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls preadv203_64 preadv203_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_madvise01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_madvise01.sh index 740b293fc..75c5f5309 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_madvise01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_madvise01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s process_madvise01 process_madvise01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls process_madvise01 process_madvise01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv01.sh index db2989acb..3daf520c8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s process_vm_readv01 process_vm01 -r - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls process_vm_readv01 process_vm01 -r failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv02.sh index f4e6a6a54..0cc48dcd0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s process_vm_readv02 process_vm_readv02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls process_vm_readv02 process_vm_readv02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv03.sh index 8503c6451..1dbed90a5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s process_vm_readv03 process_vm_readv03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls process_vm_readv03 process_vm_readv03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev01.sh index 59ef0128b..385d84883 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s process_vm_writev01 process_vm01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls process_vm_writev01 process_vm01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev02.sh index baa87af94..af2a0a95c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s process_vm_writev02 process_vm_writev02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls process_vm_writev02 process_vm_writev02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_profil01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_profil01.sh index 74e4d5c35..dc54825dd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_profil01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_profil01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s profil01 profil01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls profil01 profil01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prot_hsymlinks.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prot_hsymlinks.sh index dff9757d0..3bdd97d62 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prot_hsymlinks.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prot_hsymlinks.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s prot_hsymlinks prot_hsymlinks - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls prot_hsymlinks prot_hsymlinks failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01.sh index 5c322e03c..0e31c22ec 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pselect01 pselect01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pselect01 pselect01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01_64.sh index 0d3aa9273..559e964e1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pselect01_64 pselect01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pselect01_64 pselect01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02.sh index 59d2e92ce..da13b6720 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pselect02 pselect02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pselect02 pselect02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02_64.sh index 8263c3e0f..a788c9fc1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pselect02_64 pselect02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pselect02_64 pselect02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03.sh index 88400deda..97fa6a166 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pselect03 pselect03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pselect03 pselect03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03_64.sh index fb7b096ce..4c960d186 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pselect03_64 pselect03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pselect03_64 pselect03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace01.sh index f8c20ccb7..09bb191b5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace01 ptrace01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace01 ptrace01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace02.sh index 4e1dbd63f..9af9854c0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace02 ptrace02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace02 ptrace02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace03.sh index ce330624e..db42fc0fb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace03 ptrace03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace03 ptrace03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace04.sh index 7abafb058..cad9ef57e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace04 ptrace04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace04 ptrace04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace05.sh index 83ef23863..0bf1ac802 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace05 ptrace05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace05 ptrace05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace06.sh index 943a63f62..3c5f284a8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace06 ptrace06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace06 ptrace06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace07.sh index 263f365f5..b13130c4c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace07 ptrace07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace07 ptrace07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace08.sh index 0de13da2e..220258972 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace08 ptrace08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace08 ptrace08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace09.sh index a68fc3d26..df6f7fd0a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace09 ptrace09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace09 ptrace09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace10.sh index e161cbbf5..d30fc4d7c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace10 ptrace10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace10 ptrace10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace11.sh index fbfee1856..64848acf3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ptrace11 ptrace11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ptrace11 ptrace11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01.sh index 0108f57ca..adbb1cd0f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwrite01 pwrite01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwrite01 pwrite01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01_64.sh index 98e37afb6..a60984054 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwrite01_64 pwrite01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwrite01_64 pwrite01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02.sh index 0c6471704..f81ac8bea 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwrite02 pwrite02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwrite02 pwrite02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02_64.sh index 60266230b..9e1365a2c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwrite02_64 pwrite02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwrite02_64 pwrite02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03.sh index 8713b3fc3..5173bf3dc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwrite03 pwrite03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwrite03 pwrite03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03_64.sh index 5dc096175..4307fc4a3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwrite03_64 pwrite03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwrite03_64 pwrite03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04.sh index 8b334d155..0effd9ff1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwrite04 pwrite04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwrite04 pwrite04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04_64.sh index 88f9c3b97..e95ef96b2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwrite04_64 pwrite04_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwrite04_64 pwrite04_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01.sh index 44162ca59..472591a02 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev01 pwritev01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev01 pwritev01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01_64.sh index 9dce40306..7a0afd7fe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev01_64 pwritev01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev01_64 pwritev01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02.sh index 44be085fa..732ff7144 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev02 pwritev02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev02 pwritev02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02_64.sh index 44eebed49..3dc48105c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev02_64 pwritev02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev02_64 pwritev02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03.sh index 071ed4d52..aff0ce693 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev03 pwritev03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev03 pwritev03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03_64.sh index 848a40e32..fb3e13e0b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev03_64 pwritev03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev03_64 pwritev03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201.sh index e781f1b2c..2b3c727f7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev201 pwritev201 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev201 pwritev201 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201_64.sh index 4295f46cf..49bfc1eb3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev201_64 pwritev201_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev201_64 pwritev201_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202.sh index ac6aaba84..9d0e03044 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev202 pwritev202 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev202 pwritev202 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202_64.sh index ff3b4e30f..9863325b4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s pwritev202_64 pwritev202_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls pwritev202_64 pwritev202_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_qmm01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_qmm01.sh index 226d3edc7..d40fd85f9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_qmm01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_qmm01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s qmm01 mmap001 -m 1 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls qmm01 mmap001 -m 1 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl01.sh index c1b3ed988..44970bf6a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s quotactl01 quotactl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls quotactl01 quotactl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl02.sh index bdbba0d4b..1bb9cb5f9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s quotactl02 quotactl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls quotactl02 quotactl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl03.sh index 0934e3f5d..eae424dba 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s quotactl03 quotactl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls quotactl03 quotactl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl04.sh index e976049b2..cf76dceb6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s quotactl04 quotactl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls quotactl04 quotactl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl05.sh index 02b556fdd..ef0cee4b3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s quotactl05 quotactl05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls quotactl05 quotactl05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl06.sh index 49f3d2ab3..6122616a4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s quotactl06 quotactl06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls quotactl06 quotactl06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl07.sh index aa043a4e6..db2d4e9f5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s quotactl07 quotactl07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls quotactl07 quotactl07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl08.sh index 187299023..e21c487a9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s quotactl08 quotactl08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls quotactl08 quotactl08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl09.sh index d855fa190..fbaacc099 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s quotactl09 quotactl09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls quotactl09 quotactl09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read01.sh index ee0843847..62714447c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s read01 read01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls read01 read01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read02.sh index e93932e64..d17d0166d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s read02 read02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls read02 read02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read03.sh index a9506704a..35409e4f8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s read03 read03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls read03 read03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read04.sh index 56132eb03..1f3502534 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s read04 read04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls read04 read04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead01.sh index ba8844948..82e14da09 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readahead01 readahead01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readahead01 readahead01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead02.sh index c2e9b5786..f825489df 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readahead02 readahead02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readahead02 readahead02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir01.sh index 0b25dacb6..cf08559f4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readdir01 readdir01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readdir01 readdir01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir21.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir21.sh index 9127d6e3a..021fba80e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir21.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir21.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readdir21 readdir21 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readdir21 readdir21 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01.sh index e69649d07..975403d76 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readlink01 readlink01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readlink01 readlink01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01A.sh index 38c97fdb8..b691ecdd4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01A.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01A.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readlink01A symlink01 -T readlink01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readlink01A symlink01 -T readlink01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink03.sh index bebd6e500..d23361857 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readlink03 readlink03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readlink03 readlink03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat01.sh index ed3fddf05..279d286be 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readlinkat01 readlinkat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readlinkat01 readlinkat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat02.sh index ccf116238..f8a322c8e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readlinkat02 readlinkat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readlinkat02 readlinkat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv01.sh index 7d4fed3d9..fe9694b6a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readv01 readv01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readv01 readv01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv02.sh index 001574aee..b0b5bbde1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s readv02 readv02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls readv02 readv02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_realpath01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_realpath01.sh index 808838d68..b7eddcd56 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_realpath01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_realpath01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s realpath01 realpath01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls realpath01 realpath01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot01.sh index e8f388d24..a10d6c055 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s reboot01 reboot01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls reboot01 reboot01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot02.sh index 539d23046..463d78101 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s reboot02 reboot02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls reboot02 reboot02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recv01.sh index 6871a6388..54922e0d4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recv01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recv01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s recv01 recv01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls recv01 recv01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvfrom01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvfrom01.sh index 630106c03..84d8ed25b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvfrom01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvfrom01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s recvfrom01 recvfrom01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls recvfrom01 recvfrom01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmmsg01.sh index 130021991..d50051f07 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmmsg01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmmsg01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s recvmmsg01 recvmmsg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls recvmmsg01 recvmmsg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg01.sh index 6dfe8a9e3..aab904039 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s recvmsg01 recvmsg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls recvmsg01 recvmsg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg02.sh index 1f688294f..24450f832 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s recvmsg02 recvmsg02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls recvmsg02 recvmsg02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg03.sh index c921ca156..e5665418d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s recvmsg03 recvmsg03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls recvmsg03 recvmsg03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_pages01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_pages01.sh index 7ee6d8e17..00b8b11c1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_pages01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_pages01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s remap_file_pages01 remap_file_pages01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls remap_file_pages01 remap_file_pages01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_pages02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_pages02.sh index 4c3c1393f..1fdfbd0e4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_pages02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_pages02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s remap_file_pages02 remap_file_pages02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls remap_file_pages02 remap_file_pages02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr01.sh index da570fd73..370e0d073 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s removexattr01 removexattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls removexattr01 removexattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr02.sh index 24c1dbbe3..a8cfc1b27 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s removexattr02 removexattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls removexattr02 removexattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01.sh index 47f993ead..30264a0e1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename01 rename01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename01 rename01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01A.sh index 677d6bcec..852f20016 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01A.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01A.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename01A symlink01 -T rename01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename01A symlink01 -T rename01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename03.sh index 280859f74..047867a5f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename03 rename03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename03 rename03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename04.sh index b2ea257c0..4c6081e3b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename04 rename04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename04 rename04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename05.sh index 27366aa02..efa8ec11c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename05 rename05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename05 rename05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename06.sh index a138a5b28..c1dd0775b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename06 rename06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename06 rename06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename07.sh index b4b2c1a81..d34ee0bf6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename07 rename07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename07 rename07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename08.sh index d2f1e25b1..9a5fe7e7f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename08 rename08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename08 rename08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename09.sh index 02231c9ff..0a9533ab9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename09 rename09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename09 rename09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename10.sh index a7563e653..4fec18294 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename10 rename10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename10 rename10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename11.sh index 48db81388..b755cf0f8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename11 rename11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename11 rename11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename12.sh index a1cc05a95..82bc838b5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename12 rename12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename12 rename12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename13.sh index 740f8efb7..6197f2c9d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename13.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename13 rename13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename13 rename13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename14.sh index 152508988..b6971554c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename14.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename14.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rename14 rename14 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rename14 rename14 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat01.sh index 4ecb1e43a..0d67f9ebd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s renameat01 renameat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls renameat01 renameat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat201.sh index c25d25eba..cfd78c476 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat201.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat201.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s renameat201 renameat201 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls renameat201 renameat201 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat202.sh index 6c608ab71..fb96999d0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat202.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat202.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s renameat202 renameat202 -i 10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls renameat202 renameat202 -i 10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key01.sh index f799e8a71..1fe9f4a4f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s request_key01 request_key01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls request_key01 request_key01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key02.sh index 4e94d16d4..f13d06aa3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s request_key02 request_key02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls request_key02 request_key02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key03.sh index f2d605c9f..3c01763a6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s request_key03 request_key03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls request_key03 request_key03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key04.sh index 0848641a2..06b849a12 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s request_key04 request_key04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls request_key04 request_key04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key05.sh index a08597fd9..57402fd76 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s request_key05 request_key05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls request_key05 request_key05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir01.sh index 8aeb24945..045bcca57 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rmdir01 rmdir01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rmdir01 rmdir01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir02.sh index 4349f2232..4f52b2aa2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rmdir02 rmdir02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rmdir02 rmdir02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03.sh index 064a6b508..c087f6fcc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rmdir03 rmdir03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rmdir03 rmdir03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03A.sh index 7b1e97e78..f34f9d82b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03A.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03A.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rmdir03A symlink01 -T rmdir03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rmdir03A symlink01 -T rmdir03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction01.sh index 3ae04d099..7cb7ba773 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rt_sigaction01 rt_sigaction01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rt_sigaction01 rt_sigaction01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction02.sh index 7b3fd37b4..305f13f48 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rt_sigaction02 rt_sigaction02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rt_sigaction02 rt_sigaction02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction03.sh index 1132c15a0..c62ab0017 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rt_sigaction03 rt_sigaction03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rt_sigaction03 rt_sigaction03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask01.sh index 85fc31868..70ccb0f2e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rt_sigprocmask01 rt_sigprocmask01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rt_sigprocmask01 rt_sigprocmask01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask02.sh index 830daadd1..80bde0b8a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rt_sigprocmask02 rt_sigprocmask02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rt_sigprocmask02 rt_sigprocmask02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigqueueinfo01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigqueueinfo01.sh index 35ff4f5da..0f8de52f6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigqueueinfo01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigqueueinfo01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rt_sigqueueinfo01 rt_sigqueueinfo01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rt_sigqueueinfo01 rt_sigqueueinfo01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigsuspend01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigsuspend01.sh index 55b2ad251..e7e93d61c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigsuspend01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigsuspend01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rt_sigsuspend01 rt_sigsuspend01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rt_sigsuspend01 rt_sigsuspend01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigtimedwait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigtimedwait01.sh index 3a2e008d3..90a7181c7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigtimedwait01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigtimedwait01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rt_sigtimedwait01 rt_sigtimedwait01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rt_sigtimedwait01 rt_sigtimedwait01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_tgsigqueueinfo01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_tgsigqueueinfo01.sh index 1be338020..e04018cc8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_tgsigqueueinfo01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_tgsigqueueinfo01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s rt_tgsigqueueinfo01 rt_tgsigqueueinfo01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls rt_tgsigqueueinfo01 rt_tgsigqueueinfo01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk01.sh index 2bd03ddcf..69bc5b1dd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sbrk01 sbrk01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sbrk01 sbrk01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk02.sh index 30477b7ef..cd1343d0d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sbrk02 sbrk02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sbrk02 sbrk02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk03.sh index c3904fbde..367a3d5b5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sbrk03 sbrk03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sbrk03 sbrk03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max01.sh index 33ed2d0c2..b2d321867 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_get_priority_max01 sched_get_priority_max01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_get_priority_max01 sched_get_priority_max01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max02.sh index 52ede089a..bae9214ad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_get_priority_max02 sched_get_priority_max02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_get_priority_max02 sched_get_priority_max02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min01.sh index 16528f593..e9478d288 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_get_priority_min01 sched_get_priority_min01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_get_priority_min01 sched_get_priority_min01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min02.sh index 21f09d02e..b5dd4da93 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_get_priority_min02 sched_get_priority_min02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_get_priority_min02 sched_get_priority_min02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getaffinity01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getaffinity01.sh index cfa2f275c..b63f91aa4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getaffinity01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getaffinity01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_getaffinity01 sched_getaffinity01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_getaffinity01 sched_getaffinity01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr01.sh index 3b6251b45..43a2ecb25 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_getattr01 sched_getattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_getattr01 sched_getattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr02.sh index f1a9b8836..282d43f8d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_getattr02 sched_getattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_getattr02 sched_getattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam01.sh index a61c0afe0..68ae410cf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_getparam01 sched_getparam01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_getparam01 sched_getparam01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam03.sh index cab0b6447..63275decb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_getparam03 sched_getparam03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_getparam03 sched_getparam03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler01.sh index c3274738f..14d4b4b8a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_getscheduler01 sched_getscheduler01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_getscheduler01 sched_getscheduler01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler02.sh index 30b6bce66..a4355dc5b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_getscheduler02 sched_getscheduler02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_getscheduler02 sched_getscheduler02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval01.sh index ba3603466..89e68a411 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_rr_get_interval01 sched_rr_get_interval01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_rr_get_interval01 sched_rr_get_interval01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval02.sh index 4361942e3..051337535 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_rr_get_interval02 sched_rr_get_interval02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_rr_get_interval02 sched_rr_get_interval02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval03.sh index 1709d1bce..64fc978d0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_rr_get_interval03 sched_rr_get_interval03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_rr_get_interval03 sched_rr_get_interval03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setaffinity01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setaffinity01.sh index 4ff1817a7..3cc3421bc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setaffinity01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setaffinity01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setaffinity01 sched_setaffinity01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setaffinity01 sched_setaffinity01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setattr01.sh index b0908f219..a4eaab59c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setattr01 sched_setattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setattr01 sched_setattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam01.sh index 706b6bbc3..0b91cc85c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setparam01 sched_setparam01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setparam01 sched_setparam01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam02.sh index 9e16a044b..f2233c6b0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setparam02 sched_setparam02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setparam02 sched_setparam02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam03.sh index 68dd1a0ab..6ee93825a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setparam03 sched_setparam03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setparam03 sched_setparam03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam04.sh index 3dbf92b16..3031b0ffe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setparam04 sched_setparam04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setparam04 sched_setparam04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam05.sh index 6afec043a..f39c547f8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setparam05 sched_setparam05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setparam05 sched_setparam05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler01.sh index 8d78dc455..58835d3c4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setscheduler01 sched_setscheduler01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setscheduler01 sched_setscheduler01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler02.sh index 9abb9b361..5dd309e1c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setscheduler02 sched_setscheduler02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setscheduler02 sched_setscheduler02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler03.sh index 52c3be19a..a6a51f303 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setscheduler03 sched_setscheduler03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setscheduler03 sched_setscheduler03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler04.sh index dd8d31e08..17c31f1fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_setscheduler04 sched_setscheduler04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_setscheduler04 sched_setscheduler04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_yield01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_yield01.sh index 65a390796..9aae3f0c0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_yield01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_yield01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sched_yield01 sched_yield01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sched_yield01 sched_yield01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_seccomp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_seccomp01.sh new file mode 100644 index 000000000..f8c42a179 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_seccomp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls seccomp01 seccomp01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s seccomp01 seccomp01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls seccomp01 seccomp01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select01.sh index 4656edb14..09b3d488c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s select01 select01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls select01 select01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select02.sh index 18ee47f32..21c880738 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s select02 select02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls select02 select02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select03.sh index aa4310ff9..2451146e2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s select03 select03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls select03 select03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select04.sh index 39f96820d..34c463fc3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s select04 select04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls select04 select04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl01.sh index 95f3aff26..a6925ecba 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semctl01 semctl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semctl01 semctl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl02.sh index 0c09b3230..962bab315 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semctl02 semctl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semctl02 semctl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl03.sh index 4359161b8..e13512c81 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semctl03 semctl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semctl03 semctl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl04.sh index 05c4ab5c6..ca16f062d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semctl04 semctl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semctl04 semctl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl05.sh index 16e683f1c..38009d256 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semctl05 semctl05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semctl05 semctl05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl06.sh index ad5527b81..41875cedb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semctl06 semctl06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semctl06 semctl06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl07.sh index d6a317cdd..74c7e09b6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semctl07 semctl07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semctl07 semctl07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl08.sh index 38bf0b1cc..46110e50b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semctl08 semctl08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semctl08 semctl08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl09.sh index 8027a0c55..39a541e7c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semctl09 semctl09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semctl09 semctl09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget01.sh index 4a61da15e..bdfb70524 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semget01 semget01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semget01 semget01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget02.sh index ed2b1fd41..1bc421c8a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semget02 semget02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semget02 semget02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget05.sh index 535f6b49d..41acc3f07 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semget05 semget05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semget05 semget05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop01.sh index 2f2343bf7..767048414 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semop01 semop01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semop01 semop01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop02.sh index aceaaaea1..5c8b6f2a1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semop02 semop02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semop02 semop02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop03.sh index 707e8f218..1f80b30e3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semop03 semop03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semop03 semop03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop04.sh index 0a89c11d6..2024865cc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semop04 semop04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semop04 semop04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop05.sh index 886ecb283..0071bd965 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s semop05 semop05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls semop05 semop05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send01.sh index a6290615f..a22f8a124 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s send01 send01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls send01 send01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send02.sh index 9e6cf1490..03432df2d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s send02 send02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls send02 send02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02.sh index 3c577d754..da9338c6a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile02 sendfile02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile02 sendfile02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02_64.sh index ee8b1c1d4..46db359c3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile02_64 sendfile02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile02_64 sendfile02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03.sh index 9c6ac7597..36e773aeb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile03 sendfile03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile03 sendfile03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03_64.sh index c3780787c..dc38a4f02 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile03_64 sendfile03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile03_64 sendfile03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04.sh index 261ccb632..8fd50ec90 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile04 sendfile04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile04 sendfile04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04_64.sh index ac843f2e5..9afa82476 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile04_64 sendfile04_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile04_64 sendfile04_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05.sh index a324f735e..86a436404 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile05 sendfile05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile05 sendfile05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05_64.sh index 6921f5aaa..5f12d55a0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile05_64 sendfile05_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile05_64 sendfile05_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06.sh index 91ad29e3a..2c4882f31 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile06 sendfile06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile06 sendfile06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06_64.sh index c5320c893..4a6bf2787 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile06_64 sendfile06_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile06_64 sendfile06_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07.sh index 69e1c06c5..55723e8f4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile07 sendfile07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile07 sendfile07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07_64.sh index 1021e1538..58b09cfa8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile07_64 sendfile07_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile07_64 sendfile07_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08.sh index 0df560d42..fdc406881 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile08 sendfile08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile08 sendfile08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08_64.sh index e0d252b94..41b386fd1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile08_64 sendfile08_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile08_64 sendfile08_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09.sh index 9a2b401af..5e1bd1f47 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile09 sendfile09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile09 sendfile09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09_64.sh index e6e03eaa2..81ecf9d88 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendfile09_64 sendfile09_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendfile09_64 sendfile09_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg01.sh index e84252da0..f1ceba6c2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendmmsg01 sendmmsg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendmmsg01 sendmmsg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg02.sh index cf3b1b577..5c305faa1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendmmsg02 sendmmsg02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendmmsg02 sendmmsg02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg01.sh index 7b252b699..7687eaf7b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendmsg01 sendmsg01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendmsg01 sendmsg01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg02.sh index 2bde77c03..94aa406e9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendmsg02 sendmsg02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendmsg02 sendmsg02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg03.sh index bc60d0fde..d48e6fe8b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendmsg03 sendmsg03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendmsg03 sendmsg03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto01.sh index 2690156bb..f46c15ddd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendto01 sendto01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendto01 sendto01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto02.sh index a518b9a30..512df7191 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendto02 sendto02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendto02 sendto02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto03.sh index d9c870109..2c68a268e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sendto03 sendto03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sendto03 sendto03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy01.sh index 3289dac3b..57640cf07 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s set_mempolicy01 set_mempolicy01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls set_mempolicy01 set_mempolicy01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy02.sh index 139ae784e..c7293ea83 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s set_mempolicy02 set_mempolicy02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls set_mempolicy02 set_mempolicy02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy03.sh index 1767fa33e..4ea685c3e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s set_mempolicy03 set_mempolicy03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls set_mempolicy03 set_mempolicy03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy04.sh index 59f0e90d4..f72622416 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s set_mempolicy04 set_mempolicy04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls set_mempolicy04 set_mempolicy04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_robust_list01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_robust_list01.sh index 3776ecf53..1f3f1d9dc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_robust_list01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_robust_list01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s set_robust_list01 set_robust_list01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls set_robust_list01 set_robust_list01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_thread_area01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_thread_area01.sh index 430d9882c..b4f19b4b3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_thread_area01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_thread_area01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s set_thread_area01 set_thread_area01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls set_thread_area01 set_thread_area01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_tid_address01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_tid_address01.sh index d2b789e8f..b5eb8aea0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_tid_address01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_tid_address01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s set_tid_address01 set_tid_address01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls set_tid_address01 set_tid_address01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname01.sh index 8ade3625c..405f97047 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setdomainname01 setdomainname01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setdomainname01 setdomainname01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname02.sh index 4c11ddd38..d9f230158 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setdomainname02 setdomainname02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setdomainname02 setdomainname02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname03.sh index c519f2f13..e779a0717 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setdomainname03 setdomainname03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setdomainname03 setdomainname03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid01.sh index 66473abf4..86e79d97d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setegid01 setegid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setegid01 setegid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid02.sh index a07d9f3f9..30548e7b3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setegid02 setegid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setegid02 setegid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01.sh index 74634d169..530f6345d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsgid01 setfsgid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsgid01 setfsgid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01_16.sh index a00450dd1..2446a8b83 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsgid01_16 setfsgid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsgid01_16 setfsgid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02.sh index d8cec58bf..b81ea7efc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsgid02 setfsgid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsgid02 setfsgid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02_16.sh index d6de2d32e..28ca7f135 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsgid02_16 setfsgid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsgid02_16 setfsgid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03.sh index 38808d8f8..a72c68454 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsgid03 setfsgid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsgid03 setfsgid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03_16.sh index 8c7d41342..e1198d5f2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsgid03_16 setfsgid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsgid03_16 setfsgid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01.sh index 4d1e43f27..afbbac3e7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsuid01 setfsuid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsuid01 setfsuid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01_16.sh index c9b6c1984..1c567afd2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsuid01_16 setfsuid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsuid01_16 setfsuid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02.sh index 5cc31f594..9d4a39f23 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsuid02 setfsuid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsuid02 setfsuid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02_16.sh index 9298f39b5..64fded520 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsuid02_16 setfsuid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsuid02_16 setfsuid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03.sh index e9d9e4c43..5a3167966 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsuid03 setfsuid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsuid03 setfsuid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03_16.sh index e9e755061..128a5a260 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsuid03_16 setfsuid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsuid03_16 setfsuid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04.sh index 7b3a56e7b..55f096882 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsuid04 setfsuid04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsuid04 setfsuid04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04_16.sh index 365daee85..e49cf4e2b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setfsuid04_16 setfsuid04_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setfsuid04_16 setfsuid04_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01.sh index dded48eed..93643bfad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgid01 setgid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgid01 setgid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01_16.sh index 4e90d9fae..de1d219a5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgid01_16 setgid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgid01_16 setgid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02.sh index 89ea0ecfb..c8e0ee1de 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgid02 setgid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgid02 setgid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02_16.sh index 24c6d35c9..23588a5ba 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgid02_16 setgid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgid02_16 setgid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03.sh index 00f41138e..af798ccfe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgid03 setgid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgid03 setgid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03_16.sh index fd4ed33a9..52ca75227 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgid03_16 setgid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgid03_16 setgid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01.sh index df81bc8c3..435657a23 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgroups01 setgroups01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgroups01 setgroups01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01_16.sh index 8d23ec09c..1501fe6b5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgroups01_16 setgroups01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgroups01_16 setgroups01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02.sh index 660602dd5..f0107da67 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgroups02 setgroups02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgroups02 setgroups02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02_16.sh index 0568e5493..b0857dd50 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgroups02_16 setgroups02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgroups02_16 setgroups02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03.sh index 6c0db143c..9d8e2bffb 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgroups03 setgroups03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgroups03 setgroups03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03_16.sh index 22a04a25c..3dce9e4a9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setgroups03_16 setgroups03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setgroups03_16 setgroups03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname01.sh index 4cc81519e..c592368cf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sethostname01 sethostname01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sethostname01 sethostname01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname02.sh index 9b963f31b..a8ff4640f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sethostname02 sethostname02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sethostname02 sethostname02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname03.sh index 51c4ad326..4d2f940f1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sethostname03 sethostname03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sethostname03 sethostname03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer01.sh index 88865262d..d87ae296e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setitimer01 setitimer01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setitimer01 setitimer01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer02.sh index 858c54e63..0b2ecde35 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setitimer02 setitimer02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setitimer02 setitimer02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns01.sh index 7176415b2..7b0cbd00f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setns01 setns01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setns01 setns01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns02.sh index 46225d180..875959cc3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setns02 setns02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setns02 setns02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid01.sh index 8d147f51f..a3a4abd23 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setpgid01 setpgid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setpgid01 setpgid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid02.sh index 672b04617..d334c84f8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setpgid02 setpgid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setpgid02 setpgid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid03.sh index 0b1daf9e1..793b802e9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setpgid03 setpgid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setpgid03 setpgid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp01.sh index 090506b09..35fe177fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setpgrp01 setpgrp01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setpgrp01 setpgrp01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp02.sh index 7283d178d..f6b8a7ea4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setpgrp02 setpgrp02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setpgrp02 setpgrp02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority01.sh index 31df395ef..f5edb3701 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setpriority01 setpriority01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setpriority01 setpriority01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority02.sh index 8676654f9..88a6a4189 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setpriority02 setpriority02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setpriority02 setpriority02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01.sh index 77abcc2da..2e610b08e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setregid01 setregid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setregid01 setregid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01_16.sh index ed5e897d7..e9ad13991 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setregid01_16 setregid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setregid01_16 setregid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02.sh index 6e646183c..537f615bc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setregid02 setregid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setregid02 setregid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02_16.sh index e7f7fe395..2455e6d63 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setregid02_16 setregid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setregid02_16 setregid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03.sh index 7faa43d34..440f01d98 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setregid03 setregid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setregid03 setregid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03_16.sh index a10dfd0a6..17c5a1162 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setregid03_16 setregid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setregid03_16 setregid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04.sh index 6cedca1a4..13de63c8f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setregid04 setregid04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setregid04 setregid04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04_16.sh index 033e146c9..4167a17fd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setregid04_16 setregid04_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setregid04_16 setregid04_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01.sh index 89dff832b..83196dc3d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresgid01 setresgid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresgid01 setresgid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01_16.sh index 35f75ae22..2ed5d1bf6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresgid01_16 setresgid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresgid01_16 setresgid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02.sh index 2e5c74e6d..ac623bf02 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresgid02 setresgid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresgid02 setresgid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02_16.sh index 79dfb7ad1..ea1f7a3ab 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresgid02_16 setresgid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresgid02_16 setresgid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03.sh index 276cde663..e9e0c18f3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresgid03 setresgid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresgid03 setresgid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03_16.sh index dfa0e1c5c..11cc0d733 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresgid03_16 setresgid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresgid03_16 setresgid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04.sh index 4cc031e6a..9c43e81a6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresgid04 setresgid04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresgid04 setresgid04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04_16.sh index 8d6b2a25a..7bc5fa5fc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresgid04_16 setresgid04_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresgid04_16 setresgid04_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01.sh index 2fb35bf1d..2e57b174f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid01 setresuid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid01 setresuid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01_16.sh index d289f0542..c77bf7287 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid01_16 setresuid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid01_16 setresuid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02.sh index 185bfb2c6..525f7af74 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid02 setresuid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid02 setresuid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02_16.sh index bb7818759..f0515d11a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid02_16 setresuid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid02_16 setresuid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03.sh index 918b044c6..19b8d314f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid03 setresuid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid03 setresuid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03_16.sh index e1ca74e6d..7a3542012 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid03_16 setresuid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid03_16 setresuid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04.sh index adb645584..b4d59b5f3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid04 setresuid04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid04 setresuid04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04_16.sh index 1f510858f..ec3a36e56 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid04_16 setresuid04_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid04_16 setresuid04_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05.sh index e73061b4c..b05ed88e6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid05 setresuid05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid05 setresuid05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05_16.sh index 6ec3dd231..efdefc068 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setresuid05_16 setresuid05_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setresuid05_16 setresuid05_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01.sh index d0a26c554..be8cd6972 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid01 setreuid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid01 setreuid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01_16.sh index 7cf496ac5..86c564a3b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid01_16 setreuid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid01_16 setreuid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02.sh index 7ef963582..cfd00fbab 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid02 setreuid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid02 setreuid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02_16.sh index b6302a952..53e62bea9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid02_16 setreuid02_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid02_16 setreuid02_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03.sh index b048612be..451dd4dce 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid03 setreuid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid03 setreuid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03_16.sh index eed851a47..316d8c13a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid03_16 setreuid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid03_16 setreuid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04.sh index aa56db883..de00c92a1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid04 setreuid04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid04 setreuid04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04_16.sh index 8d8eb0ff1..564c37f93 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid04_16 setreuid04_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid04_16 setreuid04_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05.sh index d80dd0fa0..7b3c5ec4b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid05 setreuid05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid05 setreuid05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05_16.sh index da54caea3..5e2588834 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid05_16 setreuid05_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid05_16 setreuid05_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06.sh index c3b755bfa..98643db53 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid06 setreuid06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid06 setreuid06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06_16.sh index 8c5584565..59e556b10 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid06_16 setreuid06_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid06_16 setreuid06_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07.sh index df43c9482..f573b8992 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid07 setreuid07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid07 setreuid07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07_16.sh index f9b0d9ae1..5c5718fc3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setreuid07_16 setreuid07_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setreuid07_16 setreuid07_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit01.sh index 6a1f0122e..d00c7c011 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setrlimit01 setrlimit01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setrlimit01 setrlimit01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit02.sh index 763607003..1deb25c64 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setrlimit02 setrlimit02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setrlimit02 setrlimit02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit03.sh index 747b1fc08..71cc1634a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setrlimit03 setrlimit03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setrlimit03 setrlimit03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit04.sh index 043f0a8dc..327d772f4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setrlimit04 setrlimit04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setrlimit04 setrlimit04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit05.sh index 3ef4df625..d54640407 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setrlimit05 setrlimit05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setrlimit05 setrlimit05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit06.sh index 23219de08..f88c28ce7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setrlimit06 setrlimit06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setrlimit06 setrlimit06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsid01.sh index b668ff7de..0a605493f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsid01 setsid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsid01 setsid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt01.sh index 973454bc1..26571db50 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt01 setsockopt01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt01 setsockopt01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt02.sh index fef6ca9d9..65a816aa9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt02 setsockopt02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt02 setsockopt02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt03.sh index 20953dfc9..fa1505fdf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt03 setsockopt03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt03 setsockopt03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt04.sh index 4703097d1..05c227de1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt04 setsockopt04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt04 setsockopt04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt05.sh index c4c3a1527..fde12da4d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt05 setsockopt05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt05 setsockopt05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt06.sh index 29193a589..c6dc3e040 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt06 setsockopt06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt06 setsockopt06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt07.sh index 9b4abb4e2..d244ff00f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt07 setsockopt07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt07 setsockopt07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt08.sh index 706c464a7..004e2a644 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt08 setsockopt08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt08 setsockopt08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt09.sh index b75e843ce..e2db60f86 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt09 setsockopt09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt09 setsockopt09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt10.sh index 58ac4d420..233203842 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setsockopt10 setsockopt10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setsockopt10 setsockopt10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday01.sh index 228be841e..fe141d800 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s settimeofday01 settimeofday01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls settimeofday01 settimeofday01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday02.sh index 7cf52ef12..f40670049 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s settimeofday02 settimeofday02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls settimeofday02 settimeofday02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01.sh index 5eb18821d..593818c9f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setuid01 setuid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setuid01 setuid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01_16.sh index 4321b3840..76c58540f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setuid01_16 setuid01_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setuid01_16 setuid01_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03.sh index c38e79930..9610a0f8c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setuid03 setuid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setuid03 setuid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03_16.sh index 1cebf19c6..e0a102d23 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setuid03_16 setuid03_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setuid03_16 setuid03_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04.sh index c6aff12f6..85d4759fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setuid04 setuid04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setuid04 setuid04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04_16.sh index 330011e10..e61c67a12 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04_16.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04_16.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setuid04_16 setuid04_16 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setuid04_16 setuid04_16 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr01.sh index c6855d27b..f33e2dd00 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setxattr01 setxattr01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setxattr01 setxattr01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr02.sh index 3ff013cbc..b1fb397f4 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setxattr02 setxattr02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setxattr02 setxattr02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr03.sh index 3667f357e..6d76ba65d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s setxattr03 setxattr03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls setxattr03 setxattr03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sgetmask01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sgetmask01.sh index 89d257bb9..9c29a6590 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sgetmask01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sgetmask01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sgetmask01 sgetmask01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sgetmask01 sgetmask01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat01.sh index c0aa15409..a1b2cae33 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmat01 shmat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmat01 shmat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat02.sh index bdb551e4e..6b8b89485 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmat02 shmat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmat02 shmat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat03.sh index 75a8d8cf0..8b406c7ad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmat03 shmat03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmat03 shmat03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat04.sh new file mode 100644 index 000000000..8e61eb62a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls shmat04 shmat04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s shmat04 shmat04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls shmat04 shmat04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl01.sh index 523336408..7cbedfd67 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmctl01 shmctl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmctl01 shmctl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl02.sh index 90fd8318f..59c385bbd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmctl02 shmctl02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmctl02 shmctl02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl03.sh index 615d16896..d451141e8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmctl03 shmctl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmctl03 shmctl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl04.sh index 6b75006df..ed70b441c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmctl04 shmctl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmctl04 shmctl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl05.sh index 254a0179c..d9ad1ef93 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmctl05 shmctl05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmctl05 shmctl05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl06.sh index de762ddda..7474d93f9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmctl06 shmctl06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmctl06 shmctl06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl07.sh index e47f4d970..3d693bea2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmctl07 shmctl07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmctl07 shmctl07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl08.sh index f4fe18223..208652875 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmctl08 shmctl08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmctl08 shmctl08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt01.sh index 61f933d8b..36e55a27e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmdt01 shmdt01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmdt01 shmdt01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt02.sh index b582af189..baa7a833b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmdt02 shmdt02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmdt02 shmdt02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget02.sh index bb75e4656..20c5cd089 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmget02 shmget02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmget02 shmget02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget03.sh index 78819c6d3..ad4d8eb8d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmget03 shmget03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmget03 shmget03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget04.sh index a002f9ef1..c738b71e8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmget04 shmget04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmget04 shmget04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget05.sh index 540c363eb..ac07c1e60 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmget05 shmget05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmget05 shmget05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget06.sh index 3a94bbd2b..9e0c31b05 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s shmget06 shmget06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls shmget06 shmget06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shutdown01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shutdown01.sh new file mode 100644 index 000000000..eef0efc5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shutdown01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls shutdown01 shutdown01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s shutdown01 shutdown01 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls shutdown01 shutdown01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shutdown02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shutdown02.sh new file mode 100644 index 000000000..79297aaa3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shutdown02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls shutdown02 shutdown02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s shutdown02 shutdown02 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls shutdown02 shutdown02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction01.sh index c10ac60e3..0f49e16f7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigaction01 sigaction01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigaction01 sigaction01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction02.sh index d4219807a..37a5f1d57 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigaction02 sigaction02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigaction02 sigaction02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack01.sh index bcbff2299..2669f745e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigaltstack01 sigaltstack01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigaltstack01 sigaltstack01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack02.sh index 50cb38192..f2225ca8c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigaltstack02 sigaltstack02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigaltstack02 sigaltstack02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sighold02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sighold02.sh index 45030ccbd..bc88de09a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sighold02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sighold02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sighold02 sighold02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sighold02 sighold02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal01.sh index 61f6e6020..489c94ecc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s signal01 signal01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls signal01 signal01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal02.sh index 3cd6cced7..c1dce61ca 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s signal02 signal02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls signal02 signal02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal03.sh index b1cc203c6..22958e2c1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s signal03 signal03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls signal03 signal03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal04.sh index df10dbd6b..3a479bad9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s signal04 signal04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls signal04 signal04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal05.sh index 3465843fb..597f0ccfa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s signal05 signal05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls signal05 signal05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal06.sh index 7ae418fc9..b1400ac01 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s signal06 signal06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls signal06 signal06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd01.sh index 99260d4e0..7b1f69c69 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s signalfd01 signalfd01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls signalfd01 signalfd01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_01.sh index 029341f1d..9029f630c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s signalfd4_01 signalfd4_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls signalfd4_01 signalfd4_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_02.sh index 80b24cdc6..e0ecead94 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s signalfd4_02 signalfd4_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls signalfd4_02 signalfd4_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigpending02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigpending02.sh index 9bc705b94..0cc1e2b21 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigpending02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigpending02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigpending02 sigpending02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigpending02 sigpending02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigprocmask01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigprocmask01.sh index a676a2736..5e381b30e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigprocmask01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigprocmask01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigprocmask01 sigprocmask01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigprocmask01 sigprocmask01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigrelse01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigrelse01.sh index 1028d1700..fcb09aa87 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigrelse01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigrelse01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigrelse01 sigrelse01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigrelse01 sigrelse01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigsuspend01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigsuspend01.sh index 99bfaa78b..0d57bddf7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigsuspend01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigsuspend01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigsuspend01 sigsuspend01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigsuspend01 sigsuspend01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigtimedwait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigtimedwait01.sh index 801448552..8eb961913 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigtimedwait01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigtimedwait01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigtimedwait01 sigtimedwait01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigtimedwait01 sigtimedwait01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwait01.sh index 49a8f5e3a..d1b500274 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwait01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwait01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigwait01 sigwait01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigwait01 sigwait01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwaitinfo01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwaitinfo01.sh index 9e2bd2323..38deca7b0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwaitinfo01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwaitinfo01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sigwaitinfo01 sigwaitinfo01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sigwaitinfo01 sigwaitinfo01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket01.sh index b13d11734..181dffb6d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s socket01 socket01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls socket01 socket01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket02.sh index 956921853..de26d976c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s socket02 socket02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls socket02 socket02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall01.sh index d7cc74144..b8cc5b049 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s socketcall01 socketcall01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls socketcall01 socketcall01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall02.sh index a546587bc..b80451bc8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s socketcall02 socketcall02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls socketcall02 socketcall02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall03.sh index 2dde7a277..c25b8de4f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s socketcall03 socketcall03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls socketcall03 socketcall03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair01.sh index 7281497b2..146896999 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s socketpair01 socketpair01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls socketpair01 socketpair01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair02.sh index d6bcb437a..341d036a2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s socketpair02 socketpair02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls socketpair02 socketpair02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sockioctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sockioctl01.sh index a92247686..9a621602c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sockioctl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sockioctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sockioctl01 sockioctl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sockioctl01 sockioctl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice01.sh index 260a2df80..a5acb69a0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s splice01 splice01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls splice01 splice01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice02.sh index 25ec1147d..56d22b209 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s splice02 splice02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls splice02 splice02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice03.sh index 6e9814344..1c9233b4c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s splice03 splice03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls splice03 splice03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice04.sh index 1fbb9f575..9ee2d1fbe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s splice04 splice04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls splice04 splice04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice05.sh index 165d3da2b..7ee3be37b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s splice05 splice05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls splice05 splice05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice06.sh index 90cc70b76..b315aade8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s splice06 splice06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls splice06 splice06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice07.sh new file mode 100644 index 000000000..3d88e6450 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls splice07 splice07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s splice07 splice07 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls splice07 splice07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice08.sh new file mode 100644 index 000000000..94854a61b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls splice08 splice08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s splice08 splice08 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls splice08 splice08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice09.sh new file mode 100644 index 000000000..b3a1d03cf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls splice09 splice09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s splice09 splice09 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls splice09 splice09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ssetmask01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ssetmask01.sh index d7966d3fa..e7eacca5d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ssetmask01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ssetmask01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ssetmask01 ssetmask01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ssetmask01 ssetmask01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01.sh index bb50bfd46..049a4dc7e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s stat01 stat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls stat01 stat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01_64.sh index 789125e76..f65e6dbee 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s stat01_64 stat01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls stat01_64 stat01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02.sh index 5f8775802..e8a7075ec 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s stat02 stat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls stat02 stat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02_64.sh index 70cf81ea2..608f7bcdd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s stat02_64 stat02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls stat02_64 stat02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03.sh index ffd036f85..9a35f31ea 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s stat03 stat03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls stat03 stat03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03_64.sh index 51c02ee36..e6bd04a79 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s stat03_64 stat03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls stat03_64 stat03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04.sh index 9ffb4901b..a4bfd4fc3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04.sh @@ -14,7 +14,7 @@ # @Contact : honghua@iscas.ac.cn # @Date : # @License : Mulan PSL v2 -# @Desc : test ltp_syscalls stat04 symlink01 -T stat04 +# @Desc : test ltp_syscalls stat04 stat04 # ############################################ source "$OET_PATH/libs/locallibs/common_lib.sh" @@ -48,9 +48,9 @@ function pre_test() { function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 - ./runltp -f syscalls -s stat04 symlink01 -T stat04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" - CHECK_RESULT $? 1 0 "syscalls stat04 symlink01 -T stat04 failed" + ./runltp -f syscalls -s stat04 stat04 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls stat04 stat04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04_64.sh index 0e7e93e01..ab96bbaa9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04_64.sh @@ -14,7 +14,7 @@ # @Contact : honghua@iscas.ac.cn # @Date : # @License : Mulan PSL v2 -# @Desc : test ltp_syscalls stat04_64 symlink01 -T stat04_64 +# @Desc : test ltp_syscalls stat04_64 stat04_64 # ############################################ source "$OET_PATH/libs/locallibs/common_lib.sh" @@ -48,9 +48,9 @@ function pre_test() { function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 - ./runltp -f syscalls -s stat04_64 symlink01 -T stat04_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" - CHECK_RESULT $? 1 0 "syscalls stat04_64 symlink01 -T stat04_64 failed" + ./runltp -f syscalls -s stat04_64 stat04_64 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls stat04_64 stat04_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01.sh index 52698108f..0991613b2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statfs01 statfs01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statfs01 statfs01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01_64.sh index 1f6dbc16e..4b6c39f6f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statfs01_64 statfs01_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statfs01_64 statfs01_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02.sh index d79e6e399..6e0d868e6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statfs02 statfs02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statfs02 statfs02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02_64.sh index 198589319..690b30538 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statfs02_64 statfs02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statfs02_64 statfs02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03.sh index 663aa182c..f9ed38d0b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statfs03 statfs03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statfs03 statfs03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03_64.sh index 7ac1586ee..a3e9031d9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statfs03_64 statfs03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statfs03_64 statfs03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs01.sh index 728b9e254..066a99508 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statvfs01 statvfs01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statvfs01 statvfs01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs02.sh index df2692f6a..21b7018d2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statvfs02 statvfs02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statvfs02 statvfs02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx01.sh index 051cb13ea..9f6e0a8b5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx01 statx01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx01 statx01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx02.sh index d428b7e9b..941c54fff 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx02 statx02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx02 statx02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx03.sh index 2c8198a82..95446cce1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx03 statx03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx03 statx03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx04.sh index 9605c958d..81be61b8e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx04 statx04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx04 statx04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx05.sh index f6c93c6bf..dee188ea8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx05 statx05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx05 statx05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx06.sh index b9b0c09d9..34252b4bd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx06 statx06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx06 statx06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx07.sh index f1d08520f..dbee5e2aa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx07 statx07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx07 statx07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx08.sh index 6a16de5bb..01e072928 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx08 statx08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx08 statx08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx09.sh index ae6328a3c..105769ab9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx09 statx09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx09 statx09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx10.sh index 4495c75d6..442a1fd91 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx10 statx10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx10 statx10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx11.sh index 98352c393..cea7afd90 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx11 statx11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx11 statx11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx12.sh index 2c8a7f484..2184c6b79 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s statx12 statx12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls statx12 statx12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime01.sh index 99ed2e91f..2ec2cb62f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s stime01 stime01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls stime01 stime01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime02.sh index fe8c4d1d0..def3747d0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s stime02 stime02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls stime02 stime02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_string01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_string01.sh index 8ac000d7f..38d03185d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_string01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_string01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s string01 string01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls string01 string01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff01.sh index dff995fc4..a2fc920ac 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s swapoff01 swapoff01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls swapoff01 swapoff01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff02.sh index c2d3fc154..935cb5f10 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s swapoff02 swapoff02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls swapoff02 swapoff02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon01.sh index 4b51ea1d5..207433073 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s swapon01 swapon01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls swapon01 swapon01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon02.sh index 0048b7484..cd64af727 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s swapon02 swapon02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls swapon02 swapon02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon03.sh index 20e015767..54f3a7930 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s swapon03 swapon03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls swapon03 swapon03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_switch01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_switch01.sh index a01baa417..167b3c889 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_switch01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_switch01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s switch01 endian_switch01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls switch01 endian_switch01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink01.sh index 3ed7b14b2..d1959726f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s symlink01 symlink01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls symlink01 symlink01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink02.sh index 5f9256372..8b2d04d52 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s symlink02 symlink02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls symlink02 symlink02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink03.sh index f12ff6589..7c5acf9b0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s symlink03 symlink03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls symlink03 symlink03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink04.sh index 976c6f80c..003c71506 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s symlink04 symlink04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls symlink04 symlink04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlinkat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlinkat01.sh index 6e555b649..1de40f6ad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlinkat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlinkat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s symlinkat01 symlinkat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls symlinkat01 symlinkat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync01.sh index 893c1c46f..5d7a0593c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sync01 sync01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sync01 sync01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range01.sh index d7493cafb..73db084a9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sync_file_range01 sync_file_range01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sync_file_range01 sync_file_range01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range02.sh index 3a9983f16..a113d65d1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sync_file_range02 sync_file_range02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sync_file_range02 sync_file_range02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syncfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syncfs01.sh index e85269ef9..c899ce42f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syncfs01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syncfs01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s syncfs01 syncfs01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls syncfs01 syncfs01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syscall01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syscall01.sh index 14e0c1c31..dd5d4e580 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syscall01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syscall01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s syscall01 syscall01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls syscall01 syscall01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysconf01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysconf01.sh index 5865990b1..dd55c92b1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysconf01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysconf01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysconf01 sysconf01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysconf01 sysconf01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl01.sh index bb52b165c..ab253554c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysctl01 sysctl01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysctl01 sysctl01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl03.sh index e85b62183..5a28b555d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysctl03 sysctl03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysctl03 sysctl03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl04.sh index 22f98a841..014db8e4c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysctl04 sysctl04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysctl04 sysctl04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs01.sh index 9dbb9c88b..d63c7f65f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysfs01 sysfs01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysfs01 sysfs01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs02.sh index f37723b4c..58e4901dc 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysfs02 sysfs02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysfs02 sysfs02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs03.sh index a06569858..5322c9779 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysfs03 sysfs03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysfs03 sysfs03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs04.sh index 2335d9bc3..1e0e41522 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysfs04 sysfs04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysfs04 sysfs04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs05.sh index ec7356323..8dab4d1fe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysfs05 sysfs05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysfs05 sysfs05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo01.sh index 8d7a6a6b4..0d69b963f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysinfo01 sysinfo01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysinfo01 sysinfo01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo02.sh index f1be61f40..3aa6fc7f9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysinfo02 sysinfo02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysinfo02 sysinfo02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo03.sh index f0eaec2e0..4b8579e24 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s sysinfo03 sysinfo03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls sysinfo03 sysinfo03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog11.sh index eea9dd8f2..77dc555c9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s syslog11 syslog11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls syslog11 syslog11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog12.sh index 4f5c67d04..c8462d4ad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s syslog12 syslog12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls syslog12 syslog12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee01.sh index b264673e6..423ca2e1a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s tee01 tee01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls tee01 tee01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee02.sh index 279b239bc..52b3bc1ac 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s tee02 tee02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls tee02 tee02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill01.sh index 7268a63ee..7629b55f5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s tgkill01 tgkill01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls tgkill01 tgkill01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill02.sh index 247dce153..0f633cb2c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s tgkill02 tgkill02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls tgkill02 tgkill02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill03.sh index 0e7430175..4fb35be4c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s tgkill03 tgkill03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls tgkill03 tgkill03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_time01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_time01.sh index 6a00b6378..9efa63f2f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_time01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_time01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s time01 time01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls time01 time01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create01.sh index f1120c9ee..4642b3833 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_create01 timer_create01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_create01 timer_create01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create02.sh index 908d0113a..18e26e4fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_create02 timer_create02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_create02 timer_create02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create03.sh index 04bd9d0be..bb8f22c51 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_create03 timer_create03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_create03 timer_create03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete01.sh index 3f23c3dd1..dbd25fd76 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_delete01 timer_delete01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_delete01 timer_delete01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete02.sh index 93968600a..1afe54a58 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_delete02 timer_delete02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_delete02 timer_delete02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_getoverrun01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_getoverrun01.sh index 43338a001..1a38846b5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_getoverrun01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_getoverrun01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_getoverrun01 timer_getoverrun01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_getoverrun01 timer_getoverrun01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_gettime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_gettime01.sh index 17ed604c4..a3eec59e6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_gettime01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_gettime01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_gettime01 timer_gettime01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_gettime01 timer_gettime01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime01.sh index 52e922cef..027bb81a8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_settime01 timer_settime01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_settime01 timer_settime01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime02.sh index 7c4cc74a6..6481e6891 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_settime02 timer_settime02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_settime02 timer_settime02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime03.sh index 3205f0a00..c45be4459 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timer_settime03 timer_settime03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timer_settime03 timer_settime03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd01.sh index 3cfb556ed..1d83c6a6d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timerfd01 timerfd01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timerfd01 timerfd01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd02.sh index 485b9efdc..30ed5fcfd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timerfd02 timerfd02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timerfd02 timerfd02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd04.sh index fb4b246d1..9665b0bb1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timerfd04 timerfd04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timerfd04 timerfd04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_create01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_create01.sh index 61e16e75b..73096b1e6 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_create01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_create01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timerfd_create01 timerfd_create01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timerfd_create01 timerfd_create01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_gettime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_gettime01.sh index ebb1996ca..842156e7d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_gettime01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_gettime01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timerfd_gettime01 timerfd_gettime01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timerfd_gettime01 timerfd_gettime01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime01.sh index 43dc81b20..c87963691 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timerfd_settime01 timerfd_settime01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timerfd_settime01 timerfd_settime01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime02.sh index 895d9b713..d7598be36 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s timerfd_settime02 timerfd_settime02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls timerfd_settime02 timerfd_settime02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times01.sh index 262a46763..feb202d3f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s times01 times01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls times01 times01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times03.sh index 924e5e1f2..b8cfacb36 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s times03 times03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls times03 times03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill01.sh index 60ccfe95b..d9994eb6d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s tkill01 tkill01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls tkill01 tkill01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill02.sh index 5c492e70b..27d76ea48 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s tkill02 tkill02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls tkill02 tkill02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02.sh index efcd49e6d..7efdf18fd 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s truncate02 truncate02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls truncate02 truncate02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02_64.sh index 6374c68b0..36213d258 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s truncate02_64 truncate02_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls truncate02_64 truncate02_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03.sh index 690775a6a..bb651d72f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s truncate03 truncate03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls truncate03 truncate03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03_64.sh index cff38d55d..5bf75991d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03_64.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03_64.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s truncate03_64 truncate03_64 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls truncate03_64 truncate03_64 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ulimit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ulimit01.sh index 1fba0e206..f361ddc0b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ulimit01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ulimit01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ulimit01 ulimit01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ulimit01 ulimit01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umask01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umask01.sh index d9caf206c..5d65b7ca2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umask01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umask01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s umask01 umask01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls umask01 umask01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount01.sh index d3f4de1e9..a8c4a0bf2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s umount01 umount01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls umount01 umount01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount02.sh index 874dc9aac..cb2c68818 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s umount02 umount02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls umount02 umount02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount03.sh index 1baf4e50e..c7d7004be 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s umount03 umount03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls umount03 umount03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_01.sh index ea5c37e5e..87fe27135 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s umount2_01 umount2_01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls umount2_01 umount2_01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_02.sh index 2a3e8493d..8409d91f8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s umount2_02 umount2_02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls umount2_02 umount2_02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname01.sh index 90eee25a6..bb7ff4ffe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s uname01 uname01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls uname01 uname01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname02.sh index c2efba6d8..ea288a0c8 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s uname02 uname02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls uname02 uname02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname04.sh index d4bcfba7c..be23369e1 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s uname04 uname04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls uname04 uname04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink01.sh index 24e4dc332..49530b13a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s unlink01 symlink01 -T unlink01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls unlink01 symlink01 -T unlink01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink05.sh index 60a5568e3..1ad761f38 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s unlink05 unlink05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls unlink05 unlink05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink07.sh index 36dc67a4a..37837d129 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s unlink07 unlink07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls unlink07 unlink07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink08.sh index ea5c23945..5ca6977ee 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s unlink08 unlink08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls unlink08 unlink08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink09.sh new file mode 100644 index 000000000..9c6999578 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls unlink09 unlink09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s unlink09 unlink09 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls unlink09 unlink09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink10.sh new file mode 100644 index 000000000..d9ebf9636 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls unlink10 unlink10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s unlink10 unlink10 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls unlink10 unlink10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlinkat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlinkat01.sh index e46fd8416..002f46754 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlinkat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlinkat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s unlinkat01 unlinkat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls unlinkat01 unlinkat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare01.sh index ebdcfed4a..9afd6c5e9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s unshare01 unshare01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls unshare01 unshare01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare02.sh index f895e73de..45661b8f2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s unshare02 unshare02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls unshare02 unshare02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_userfaultfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_userfaultfd01.sh index eefcbf0dd..95dc4df55 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_userfaultfd01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_userfaultfd01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s userfaultfd01 userfaultfd01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls userfaultfd01 userfaultfd01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat01.sh index fb926bfb3..1bd372dd0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ustat01 ustat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ustat01 ustat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat02.sh index 30d10e5c5..99aef876c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s ustat02 ustat02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls ustat02 ustat02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime01.sh index 985ad8beb..3684acb06 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s utime01 utime01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls utime01 utime01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime02.sh index 92fb833af..cc5f830d9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s utime02 utime02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls utime02 utime02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime03.sh index 604296f18..ea1497184 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s utime03 utime03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls utime03 utime03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime04.sh index 7a1153857..4bef6b9fa 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s utime04 utime04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls utime04 utime04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime05.sh index e790c2193..b900c4cbf 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s utime05 utime05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls utime05 utime05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime06.sh index 91ea93b83..a5445da17 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s utime06 utime06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls utime06 utime06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime07.sh new file mode 100644 index 000000000..0d33d0ffd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_syscalls utime07 utime07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f syscalls -s utime07 utime07 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "syscalls utime07 utime07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimensat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimensat01.sh index 138335f50..dd77a5470 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimensat01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimensat01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s utimensat01 utimensat01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls utimensat01 utimensat01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimes01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimes01.sh index 044f33f84..7c6676cad 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimes01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimes01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s utimes01 utimes01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls utimes01 utimes01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork01.sh index 5f45a39ac..119e5e493 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s vfork01 vfork01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls vfork01 vfork01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork02.sh index 8e129fd29..c5c1df7be 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s vfork02 vfork02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls vfork02 vfork02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup01.sh index 87ade9bfe..0a2bd7897 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s vhangup01 vhangup01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls vhangup01 vhangup01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup02.sh index fc6007d7a..c81a92d3a 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s vhangup02 vhangup02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls vhangup02 vhangup02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice01.sh index a2213bcbe..e23ec2146 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s vmsplice01 vmsplice01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls vmsplice01 vmsplice01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice02.sh index 2d24ce66a..200347588 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s vmsplice02 vmsplice02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls vmsplice02 vmsplice02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice03.sh index dc85f00dd..5d2140af0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s vmsplice03 vmsplice03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls vmsplice03 vmsplice03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice04.sh index 63852dd28..d48a88b5c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s vmsplice04 vmsplice04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls vmsplice04 vmsplice04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait01.sh index aff8c3d85..824b0bf47 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s wait01 wait01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls wait01 wait01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait02.sh index 08b465062..7105812b7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s wait02 wait02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls wait02 wait02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait401.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait401.sh index 85e7f9dd7..e5476744b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait401.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait401.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s wait401 wait401 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls wait401 wait401 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait402.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait402.sh index 2ac42a44c..5062db134 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait402.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait402.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s wait402 wait402 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls wait402 wait402 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait403.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait403.sh index f6ee2cd69..2d9f6749c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait403.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait403.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s wait403 wait403 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls wait403 wait403 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid01.sh index bb4b0c0b3..05ff3e685 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid01 waitid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid01 waitid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid02.sh index 715ff723e..6066dcae7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid02 waitid02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid02 waitid02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid03.sh index 14af5627d..254b3ae16 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid03 waitid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid03 waitid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid04.sh index bbbb355a6..78e0b2b84 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid04 waitid04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid04 waitid04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid05.sh index ab42bbd5c..7f7c31638 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid05 waitid05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid05 waitid05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid06.sh index a29d40977..04c5c97b9 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid06 waitid06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid06 waitid06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid07.sh index cc22e899f..cc98d813e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid07 waitid07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid07 waitid07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid08.sh index e4423d0b5..e5418314c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid08 waitid08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid08 waitid08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid09.sh index c8511b4a7..07ccf9087 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid09 waitid09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid09 waitid09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid10.sh index 7c56a59b1..5ca49308f 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid10 waitid10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid10 waitid10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid11.sh index fd4013a91..719eaf9a5 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitid11 waitid11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitid11 waitid11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid01.sh index 315ad6d2a..c47447636 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid01 waitpid01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid01 waitpid01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid03.sh index e14893ed6..746ceeff7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid03 waitpid03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid03 waitpid03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid04.sh index 3fc5fc661..708a11f00 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid04 waitpid04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid04 waitpid04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid06.sh index 961ad76ce..607b28bf3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid06 waitpid06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid06 waitpid06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid07.sh index 754d910aa..21d25e1b2 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid07 waitpid07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid07 waitpid07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid08.sh index 25b61f6aa..f6a863bde 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid08.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid08 waitpid08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid08 waitpid08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid09.sh index ef59254ac..56ed2625d 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid09.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid09 waitpid09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid09 waitpid09 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid10.sh index b7cabd6c7..43595f7a0 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid10.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid10.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid10 waitpid10 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid10 waitpid10 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid11.sh index eb19d6894..fcea3dd21 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid11.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid11.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid11 waitpid11 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid11 waitpid11 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid12.sh index c80f253d6..5dc32c01e 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid12.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid12.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid12 waitpid12 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid12 waitpid12 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid13.sh index d3f16547a..63812a242 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid13.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid13.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s waitpid13 waitpid13 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls waitpid13 waitpid13 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write01.sh index 2c382d62a..162cd1623 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s write01 write01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls write01 write01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write02.sh index 37c16085c..a10a01d22 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s write02 write02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls write02 write02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write03.sh index 45d49f3f2..817d5a079 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s write03 write03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls write03 write03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write04.sh index 5cd004dfa..584728dd7 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write04.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s write04 write04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls write04 write04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write05.sh index a688bb6f7..f99ee9064 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s write05 write05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls write05 write05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write06.sh index c15d34e8b..0090f7211 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s write06 write06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls write06 write06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev01.sh index 09beb6e31..0145d89c3 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev01.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s writev01 writev01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls writev01 writev01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev02.sh index 6992d04d4..b362d9837 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev02.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s writev02 writev02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls writev02 writev02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev03.sh index d22a34a64..85465be9c 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev03.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s writev03 writev03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls writev03 writev03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev05.sh index 9fba2a9aa..5b01c1f75 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev05.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s writev05 writev05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls writev05 writev05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev06.sh index 23d643124..82e1bb53b 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev06.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s writev06 writev06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls writev06 writev06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev07.sh index 16fcd7d23..244ab62fe 100644 --- a/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev07.sh +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f syscalls -s writev07 writev07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "syscalls writev07 writev07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm01.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm01.sh new file mode 100644 index 000000000..ef8bf7d83 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpm01 tpm_selftest_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpm01 tpm_selftest_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpm01 tpm_selftest_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm02.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm02.sh new file mode 100644 index 000000000..f543afd13 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpm02 tpm_version_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpm02 tpm_version_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpm02 tpm_version_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm03.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm03.sh new file mode 100644 index 000000000..288da9644 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpm03 tpm_getpubek_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpm03 tpm_getpubek_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpm03 tpm_getpubek_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm04.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm04.sh new file mode 100644 index 000000000..79e0916b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpm04 tpm_takeownership_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpm04 tpm_takeownership_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpm04 tpm_takeownership_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm05.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm05.sh new file mode 100644 index 000000000..4dc4f20d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpm05 tpm_restrictpubek_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpm05 tpm_restrictpubek_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpm05 tpm_restrictpubek_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm06.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm06.sh new file mode 100644 index 000000000..cec670115 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpm06 tpm_changeauth_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpm06 tpm_changeauth_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpm06 tpm_changeauth_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm07.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm07.sh new file mode 100644 index 000000000..ce551a3e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpm07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpm07 tpm_clear_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpm07 tpm_clear_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpm07 tpm_clear_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken01.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken01.sh new file mode 100644 index 000000000..dec64fd9b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpmtoken01 tpmtoken_init_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpmtoken01 tpmtoken_init_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpmtoken01 tpmtoken_init_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken02.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken02.sh new file mode 100644 index 000000000..12d3c385f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpmtoken02 tpmtoken_setpasswd_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpmtoken02 tpmtoken_setpasswd_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpmtoken02 tpmtoken_setpasswd_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken03.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken03.sh new file mode 100644 index 000000000..fd92a3361 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpmtoken03 tpmtoken_import_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpmtoken03 tpmtoken_import_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpmtoken03 tpmtoken_import_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken04.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken04.sh new file mode 100644 index 000000000..c774f4b38 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpmtoken04 tpmtoken_protect_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpmtoken04 tpmtoken_protect_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpmtoken04 tpmtoken_protect_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken05.sh b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken05.sh new file mode 100644 index 000000000..146529940 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tpm_tools/oe_test_ltp_tpm_tools_tpmtoken05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tpm_tools tpmtoken05 tpmtoken_objects_tests.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tpm_tools -s tpmtoken05 tpmtoken_objects_tests.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tpm_tools tpmtoken05 tpmtoken_objects_tests.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_dynamic_debug01.sh b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_dynamic_debug01.sh new file mode 100644 index 000000000..c66d27f29 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_dynamic_debug01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tracing dynamic_debug01 dynamic_debug01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tracing -s dynamic_debug01 dynamic_debug01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tracing dynamic_debug01 dynamic_debug01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace-stress-test.sh b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace-stress-test.sh new file mode 100644 index 000000000..b4820ce23 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace-stress-test.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tracing ftrace-stress-test ftrace_stress_test.sh 90 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tracing -s ftrace-stress-test ftrace_stress_test.sh 90 + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tracing ftrace-stress-test ftrace_stress_test.sh 90 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace_regression01.sh b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace_regression01.sh new file mode 100644 index 000000000..2d965d370 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace_regression01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tracing ftrace_regression01 ftrace_regression01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tracing -s ftrace_regression01 ftrace_regression01.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tracing ftrace_regression01 ftrace_regression01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace_regression02.sh b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace_regression02.sh new file mode 100644 index 000000000..4258a24cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_ftrace_regression02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tracing ftrace_regression02 ftrace_regression02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tracing -s ftrace_regression02 ftrace_regression02.sh + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tracing ftrace_regression02 ftrace_regression02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_disable_branch.sh b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_disable_branch.sh new file mode 100644 index 000000000..cfc5696bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_disable_branch.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tracing pt_disable_branch pt_test -b +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tracing -s pt_disable_branch pt_test -b + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tracing pt_disable_branch pt_test -b failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_ex_kernel.sh b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_ex_kernel.sh new file mode 100644 index 000000000..76995b11c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_ex_kernel.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tracing pt_ex_kernel pt_test -e kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tracing -s pt_ex_kernel pt_test -e kernel + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tracing pt_ex_kernel pt_test -e kernel failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_ex_user.sh b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_ex_user.sh new file mode 100644 index 000000000..1596ffd47 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_ex_user.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tracing pt_ex_user pt_test -e user +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tracing -s pt_ex_user pt_test -e user + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tracing pt_ex_user pt_test -e user failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_full_trace_basic.sh b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_full_trace_basic.sh new file mode 100644 index 000000000..19f803ff8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_full_trace_basic.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tracing pt_full_trace_basic pt_test +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tracing -s pt_full_trace_basic pt_test + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tracing pt_full_trace_basic pt_test failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_snapshot_trace_basic.sh b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_snapshot_trace_basic.sh new file mode 100644 index 000000000..2545883ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_tracing/oe_test_ltp_tracing_pt_snapshot_trace_basic.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_tracing pt_snapshot_trace_basic pt_test -m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + cd /opt/ltp/ || exit 255 + ./runltp -f tracing -s pt_snapshot_trace_basic pt_test -m + grep -nr "FAIL" /opt/ltp/results/ + CHECK_RESULT $? 1 0 "tracing pt_snapshot_trace_basic pt_test -m failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent01.sh b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent01.sh index 018c62e26..7fc972598 100644 --- a/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent01.sh +++ b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f uevent -s uevent01 uevent01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "uevent uevent01 uevent01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent02.sh b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent02.sh index 6c0c2056b..5021e2a29 100644 --- a/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent02.sh +++ b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f uevent -s uevent02 uevent02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "uevent uevent02 uevent02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent03.sh b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent03.sh index ff945fbe9..d3eb18709 100644 --- a/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent03.sh +++ b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f uevent -s uevent03 uevent03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "uevent uevent03 uevent03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue01.sh b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue01.sh index 80d2dbbc2..574c9e2a2 100644 --- a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue01.sh +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue01.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f watchqueue -s wqueue01 wqueue01 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "watchqueue wqueue01 wqueue01 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue02.sh b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue02.sh index 695e3f2b9..ffa3a42dd 100644 --- a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue02.sh +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue02.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f watchqueue -s wqueue02 wqueue02 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "watchqueue wqueue02 wqueue02 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue03.sh b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue03.sh index 436dadbaf..25c346500 100644 --- a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue03.sh +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue03.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f watchqueue -s wqueue03 wqueue03 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "watchqueue wqueue03 wqueue03 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue04.sh b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue04.sh index 2062c88f5..c435b4960 100644 --- a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue04.sh +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue04.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f watchqueue -s wqueue04 wqueue04 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "watchqueue wqueue04 wqueue04 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue05.sh b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue05.sh index 3aeb17368..2fa0f07af 100644 --- a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue05.sh +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue05.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f watchqueue -s wqueue05 wqueue05 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "watchqueue wqueue05 wqueue05 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue06.sh b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue06.sh index bc244962f..ddea3d5ac 100644 --- a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue06.sh +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue06.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f watchqueue -s wqueue06 wqueue06 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "watchqueue wqueue06 wqueue06 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue07.sh b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue07.sh index db06ea6f4..074910b9c 100644 --- a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue07.sh +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue07.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f watchqueue -s wqueue07 wqueue07 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "watchqueue wqueue07 wqueue07 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue08.sh b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue08.sh index a201fe393..68550cb9f 100644 --- a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue08.sh +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue08.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f watchqueue -s wqueue08 wqueue08 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "watchqueue wqueue08 wqueue08 failed" LOG_INFO "Finish test!" } diff --git a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue09.sh b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue09.sh index 3a4653a64..9fe4580c2 100644 --- a/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue09.sh +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue09.sh @@ -49,7 +49,7 @@ function run_test() { LOG_INFO "Start testing..." cd /opt/ltp/ || exit 255 ./runltp -f watchqueue -s wqueue09 wqueue09 - grep -nr "FAIL" /opt/ltp/results/|grep -v -E "af_alg07|cpufreq_boost|proc01|ioctl_sg01|madvise06|cpuset_memory_spread|cve-2018-1000204" + grep -nr "FAIL" /opt/ltp/results/ CHECK_RESULT $? 1 0 "watchqueue wqueue09 wqueue09 failed" LOG_INFO "Finish test!" } -- Gitee From 1a80f2d94134909a745e9355be42eec167ed4696 Mon Sep 17 00:00:00 2001 From: honghua Date: Fri, 16 Aug 2024 08:59:33 +0800 Subject: [PATCH 13/14] add ltp_open_posix --- suite2cases/ltp_open_posix.json | 10 ++ .../ltp_open_posix/oe_test_ltp_open_posix.sh | 49 ++++++++ .../oecp-test/oe_test_oecp.sh | 111 ++++++++++++++++++ .../ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh | 4 +- 4 files changed, 172 insertions(+), 2 deletions(-) create mode 100644 suite2cases/ltp_open_posix.json create mode 100644 testcases/compatibility_test/ltp_open_posix/oe_test_ltp_open_posix.sh create mode 100644 testcases/compatibility_test/oecp-test/oe_test_oecp.sh diff --git a/suite2cases/ltp_open_posix.json b/suite2cases/ltp_open_posix.json new file mode 100644 index 000000000..22738dd50 --- /dev/null +++ b/suite2cases/ltp_open_posix.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/compatibility_test/ltp_open_posix", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_open_posix" + } + ] +} \ No newline at end of file diff --git a/testcases/compatibility_test/ltp_open_posix/oe_test_ltp_open_posix.sh b/testcases/compatibility_test/ltp_open_posix/oe_test_ltp_open_posix.sh new file mode 100644 index 000000000..da6aa61bf --- /dev/null +++ b/testcases/compatibility_test/ltp_open_posix/oe_test_ltp_open_posix.sh @@ -0,0 +1,49 @@ +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 1 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 1 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make & make install + cd /opt/ltp/testcases/open_posix_testsuite || exit 1 + ./configure + make all + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + cd /opt/ltp/testcases/open_posix_testsuite/bin || exit 1 + ./run-posix-option-group-test.sh AIO >/opt/aio.txt 2>&1 + ./run-posix-option-group-test.sh MEM >/opt/mem.txt 2>&1 + ./run-posix-option-group-test.sh MSG >/opt/msg.txt 2>&1 + ./run-posix-option-group-test.sh SEM >/opt/sem.txt 2>&1 + ./run-posix-option-group-test.sh SIG >/opt/sig.txt 2>&1 + ./run-posix-option-group-test.sh THR >/opt/thr.txt 2>&1 + ./run-posix-option-group-test.sh TMR >/opt/tmr.txt 2>&1 + ./run-posix-option-group-test.sh TPS >/opt/tps.txt 2>&1 + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/compatibility_test/oecp-test/oe_test_oecp.sh b/testcases/compatibility_test/oecp-test/oe_test_oecp.sh new file mode 100644 index 000000000..6eee30b6c --- /dev/null +++ b/testcases/compatibility_test/oecp-test/oe_test_oecp.sh @@ -0,0 +1,111 @@ +#!/usr/bin/bash +# ############################################# +# @Author : ThreeStones +# @Contact : 1181322273@qq.com +# @Date : 2023-10-09 +# @License : Mulan PSL v2 +# ############################################ +source ${OET_PATH}/libs/locallibs/common_lib.sh + +function install_jdk() { + # 下载 + cd /opt/ + wget https://mirrors.huaweicloud.com/java/jdk/8u192-b12/jdk-8u192-linux-x64.tar.gz + mkdir /usr/local/java/ + tar -zxvf jdk-8u192-linux-x64.tar.gz -C /usr/local/java/ + # 配置 + export JAVA_HOME=/usr/local/java/jdk1.8.0_192 + export PATH=$PATH:$JAVA_HOME/bin + export CLASSPATH=.:%JAVA_HOME%/lib/dt.jar:%JAVA_HOME%/lib/tools.jar + + source /etc/profile + +} + +function install_japi { + # 安装 + cd /opt/ + git clone https://code.osssc.ac.cn/oepkgs/os-test-framework/japi-compliance-checker.git + cd japi-compliance-checker + make install prefix=/usr + + # 检查安装是否成功 + japi-compliance-checker -test | grep "SUCCESS" + CHECK_RESULT $? 0 0 "japi-compliance-checker -test failed" +} + +function install_oecp { + # 安装 + DNF_INSTALL libabigail + DNF_INSTALL createrepo + DNF_INSTALL binutils + DNF_INSTALL libabigail + + cd /opt/ + git clone --branch 2023.12.22 --depth 1 https://code.osssc.ac.cn/oepkgs/os-test-framework/oecp.git + cd oecp/ + pip3 install -r requirement -i https://pypi.tuna.tsinghua.edu.cn/simple + + # if [[ -z $BASE_ISO_URL ]]; then + # declare -g BASE_ISO_URL="https://muug.ca/mirror/openeuler/openEuler-22.03-LTS/ISO/x86_64/openEuler-22.03-LTS-x86_64-dvd.iso" + # declare -g ios_name_1=openEuler-22.03-LTS-x86_64-dvd.iso + # fi + + # if [[ -z $TEST_ISO_URL ]]; then + # declare -g TEST_ISO_URL="https://repo.dev.oepkgs.net/oepkgs/result/shu/openEuler-22.03-1684311302-x86_64-autotest.iso" + # declare -g ios_name_2=openEuler-22.03-1684311302-x86_64-autotest.iso + # fi + +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL python3-devel + DNF_INSTALL sqlite + DNF_INSTALL libabigail-devel + DNF_INSTALL python3-pip + DNF_INSTALL java-1.8.0-openjdk-devel + DNF_INSTALL make + + pip3 install pyyaml -i https://pypi.tuna.tsinghua.edu.cn/simple + + # 安装jdk +# install_jdk + install_japi + install_oecp + + cd /opt/oecp + wget ${BASE_ISO_URL} + wget ${TEST_ISO_URL} + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + mkdir -p ${OET_PATH}/logs/oecp_test/data + name=$(date +%Y_%m_%d\_%H_%M_%S) + + IFS='/' read -ra base_iso_url <<< "$BASE_ISO_URL" + # 获取数组中最后一个元素(即文件名) + ios_name_1="${base_iso_url[-1]}" + + IFS='/' read -ra test_iso_url <<< "$TEST_ISO_URL" + # 获取数组中最后一个元素(即文件名) + ios_name_2="${test_iso_url[-1]}" + + # ios_name_1=openEuler-22.03-LTS-x86_64-dvd.iso + # ios_name_2=openEuler-22.03-1684311302-x86_64-autotest.iso + + cd /opt/oecp +# python3 cli.py ${ios_name_1} ${ios_name_2} > ${OET_PATH}/logs/oecp_test/data/${name}.log + python3 cli.py ${ios_name_1} ${ios_name_2} + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh index 1d9568b32..9df54f9e8 100644 --- a/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh +++ b/testcases/security_test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh @@ -25,12 +25,12 @@ function pre_test() { OLD_LANG=$LANG export LANG=en_US.UTF-8 dnf install -y git - cd /opt || exit 255 + cd /opt || exit 1 git clone https://gitee.com/devops_dev/ltp.git DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" - cd /opt/ltp || exit 255 + cd /opt/ltp || exit 1 make autotools if [[ "$COMPILER" == "clang" ]]; then ./configure CC=clang -- Gitee From 7286d5cfeffd9ed82d95e58c6c276bccd92d35f4 Mon Sep 17 00:00:00 2001 From: honghua Date: Fri, 16 Aug 2024 16:36:18 +0800 Subject: [PATCH 14/14] add ci to update db --- .gitlab-ci.yml | 140 +++++-------------------------------------------- 1 file changed, 14 insertions(+), 126 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 59f779429..6e6318687 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -62,129 +62,17 @@ check_testsuite_name_is_src_name: tags: - docker_mugen_runner -#check_testsuite_no_classfication: -# stage: link -# image: python:3.9.7 -# script: -# - python -m pip install --upgrade pip -# - pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ -# - python3 mugen.py check_testsuite_no_classfication -# only: -# - branches -# tags: -# - docker_mugen_runner - -#check_testsuite_classfication_exist: -# stage: link -# image: python:3.9.7 -# script: -# - python -m pip install --upgrade pip -# - pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ -# - python3 mugen.py check_testsuite_classfication_exist -# only: -# - branches -# tags: -# - docker_mugen_runner - -#check_testcase_script_exist_in_testcases_dir: -# stage: link -# image: python:3.9.7 -# script: -# - python -m pip install --upgrade pip -# - pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ -# - python3 mugen.py check_testcase_script_exist_in_testcases_dir -# only: -# - branches -# tags: -# - docker_mugen_runner - - -#check_testsuite_name_in_mugen: -# stage: link -# image: python:3.9.7 -# script: -# - python -m pip install --upgrade pip -# - pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ -# - python3 mugen.py check_testsuite_name_in_mugen -# only: -# - branches -# tags: -# - docker_mugen_runner - - -#check_script_effective: -# stage: link -# image: python:3.9.7 -# script: -# - python -m pip install --upgrade pip -# - pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ -# - python3 mugen.py check_script_without_CHECK_RESULT -# only: -# - branches -# tags: -# - docker_mugen_runner - -#update_testsuite_and_testcase_info_to_debug_db: -# stage: sync -# image: python:3.9.7 -# script: -# - git clone -b $CI_COMMIT_BRANCH https://code.osssc.ac.cn/oepkgs/mugen.git -# - cd mugen -# - python -m pip install --upgrade pip -# - pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ -# - python3 mugen.py update_testsuite_and_testcase_info_to_debug_db -# only: -# - dev -# needs: -# - check_json_data_format -# tags: -# - docker_mugen_runner - - -#update_testsuite_and_testcase_info_to_test_platform: -# stage: sync -# when: manual -# image: python:3.9.7 -# script: -# - git clone -b $CI_COMMIT_BRANCH https://code.osssc.ac.cn/oepkgs/mugen.git -# - cd mugen -# - python -m pip install --upgrade pip -# - pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ -# - python3 mugen.py update_testsuite_and_testcase_info_to_test_platform test -# only: -# - /^release-\d\d\d\d-\d\d/ -# needs: -# - check_json_data_format -# tags: -# - docker_mugen_runner - -#update_testsuite_and_testcase_info_to_demo_platform: -# stage: sync -# when: manual -# image: python:3.9.7 -# script: -# - git clone -b $CI_COMMIT_BRANCH https://code.osssc.ac.cn/oepkgs/mugen.git -# - cd mugen -# - python -m pip install --upgrade pip -# - pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ -# - python3 mugen.py update_testsuite_and_testcase_info_to_test_platform demo -# only: -# - /^release-\d\d\d\d-\d\d/ -# needs: -# - check_json_data_format -# tags: -# - docker_mugen_runner - -#report_mugen_working_process: -# stage: notice -# image: python:3.9.7 -# when: manual -# script: -# - apt-get update && apt-get install -y iputils-ping -# - python -m pip install --upgrade pip -# - pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ -# - python3 mugen.py report_mugen_working_process -# only: -# - dev -# tags: -# - docker_mugen_runner +update_test_platform_testcase_and_testsuite_db: + stage: link + image: python:3.9.7 + timeout: 1h + script: + - python -m pip install --upgrade pip + - git clone https://code.osssc.ac.cn/oepkgs/os_test_client.git && echo "Clone completed successfully" + - cd os_test_client && bash install.sh platform + - cd .. + - os_test platform update_test_platform_db + only: + - master + tags: + - docker_mugen_runner \ No newline at end of file -- Gitee